2021-11-02 03:29 AM
Good morning when compiling a project to which I added files (.h and.cpp) returns the error of "undefined reference" on a function that is in these files. I also add that I added other files (always .c and.h) of which I called a function without having problems.
2021-11-02 04:53 AM
Still a bit non-specific, what's the linker actually telling you, can you see the functions in the .MAP?
When mixing .C and .CPP files be aware of name mangling and linkage rules. Use use extern "C" or extern cdecl as appropriate.
2021-11-03 01:46 AM
thanks