Skip to content

Circular dependency #34

@V02460

Description

@V02460

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions