Closed giohappy closed 7 months ago
If you look at the errors, it's telling you that you have more than one copy of some files:
D:\me\MUSICA\dev\include\cmajor\COM\cmaj_ProgramInterface.h(36,1): error C2011: 'cmaj::SyntaxTreeOptions': 'struct' typ e redefinition (compiling source file D:\me\MUSICA\dev\cmajor\cmajor\modules\compiler\src\backends\LLVM\cmaj_LLVMPerfor mer.cpp) [D:\me\MUSICA\dev\cmajor\cmajor\build\tools\CmajPlugin\cmajor_lib.vcxproj] D:\me\MUSICA\dev\cmajor\cmajor\include\cmajor\COM\cmaj_ProgramInterface.h(35,8): message : see declaration of 'cmaj::Sy ntaxTreeOptions' (compiling source file D:\me\MUSICA\dev\cmajor\cmajor\modules\compiler\src\backends\LLVM\cmaj_LLVMPerf ormer.cpp) [D:\me\MUSICA\dev\cmajor\cmajor\build\tools\CmajPlugin\cmajor_lib.vcxproj]
i.e. you have
D:\me\MUSICA\dev\cmajor\cmajor\include\cmajor\COM\cmaj_ProgramInterface.h D:\me\MUSICA\dev\include\cmajor\COM\cmaj_ProgramInterface.h
No idea how you've ended up with two copies of the repo in your include path, but I don't think this is a bug on our part.
@julianstorer thanks so much for your eyes! I knew it was because the files were included tweice (the only reason!) but I couldn't see the two different paths. I really don't know how that additional include folder was created and why the build was picking it.
Sorry for the noise!
Just trying to build the tools with the usual commands from the repo root:
I get flooded with lots of different compile errors lile:
and many more of different types down the road.
This is the output from the cmake generator: