I make a new QNX C++ project with source files in a subfolder, and I cannot compile the program; the linker cannot find references to functions…
I have a main.cc:
and a folder, asdf that contains:
#endif /* ASDF_H_ */
printf (“hello, world.\n”);
When I try to compile, I receive the error: undefined reference to 'doStuff", indicating that the linker cannot find the compiled .o file for asdf.cpp? But I cannot figure out the makefile structure to get the project to build correctly.
I have tried adding two different makefiles (and no makefile) to the ‘asdf’ folder, as per qnx.com/developers/docs/6.3. … nvent.html.
the first attempt contains:
the second attempt contains:
Neither makefile in folder asdf works. Nor does having no makefile in asdf.
Do you have guidance? This seems like it should be a very basic thing to do, but I cannot figure it out!