Including external header with
Code: Select all
works OK, but I have problem telling TrueStudio where to find the implementation. As a consequence, I am getting
undefined reference to `xxx`
messages at build.
I tried adding paths to different folders of the another project here and there and everywhere in the current project settings for hours without success. What is the right way to do it?
In the ideal case, I would like to use the already compiled code from another project rather than including the source *.c and having to recompile again. This is at least what including *.h files instead of *.c files is used for if I understood correctly. But drag&drop&linking the other project's *.o file into the current project does not help (or I don't know how to do it correctly).
FYI, this topic was not helpful either: https://forum.atollic.com/viewtopic.php?f=3&t=1598&hilit=include+external+source.