I have a large amount of code, so I have tried to only include the relevant parts of the code here
I have another file called "P.cpp". This compiled fine before, until I tried to include the new files. Now I get undefined reference errors.
I have included the relevant parts of the CMakeLists to see if anyone can help
in arthur/CMakeLists.txt:
SET(NLL
NE
..
s
L
)
SET(NLL ${NLL}
B
..
)
ADD_EXECUTABLE (NE MACOSX_BUNDLE ${SOURCE_FILES} ${INCLUDE_FILES})
TARGET_LINK_LIBRARIES(NE${NLL})
and in /arthur/CMakeLists.txt:
ADD_SUBDIRECTORY (U)
ADD_SUBDIRECTORY (s)
ADD_SUBDIRECTORY (LB)
...
ADD_SUBDIRECTORY(NE)
I just modified the CMakeLists so that it ordered directories based on the order they should be compiled. I was able to get rid of most of the "undefined reference errors" this way, but have one left. The undefined reference message is referring to a function that has an undefined reference to another function.
However, since I can't open that cpp.o file, how can I know what is wrong?