Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circular dependency #34

Open
V02460 opened this issue Feb 28, 2022 · 0 comments
Open

Circular dependency #34

V02460 opened this issue Feb 28, 2022 · 0 comments

Comments

@V02460
Copy link

V02460 commented Feb 28, 2022

I just got started with mbeddr.cpp and got it setup so far. When making a minimal example with just a build config and a c++ implementation module containing a main function, I get errors about the module self-referencing:

[jetbrains.mps.make.ModuleMaker] Cycle #1: [[CPPTest [solution]]]
make: Circular Module.cpp <- Module.cpp dependency dropped.
CC Module.h
LD helloworld
g++: fatal error: no input files
compilation terminated.

The equivalent setup for mbeddr C works fine. I’m using mbeddr.cpp 0.2.1 with MPS 2020.3 and the last mbeddr release supporting it (Nighly Build 718). Content of the two files:

BuildConfiguration (CPPTest)
------------------------------

Platform
------------------------------
GNU paths are not checked
  make
    path to executable: make
    parallel processes: 15 (default)
  compiler
    path to executable: g++
    compiler options: -std=c++14
  linker
    path to executable: g++
    linker options: <no linkerOptions>
  debugger
    path to executable: gdb
    debug options: -g


Configuration Items
------------------------------
reporting printf

Binaries
------------------------------

executable helloworld target: any
  modules:
    Module
}
 Module            constraints
model   CPPTest    imports     nothing
------------------------------

exported int32 main(int32 argc,string[] argv) {
  return 0;
} main (function)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant