I’m using Momentics 6.2.1B and I am trying to get a program to compile with a shared library. The dll is a .so file with a couple of headers that I have included. Momentics gives me a compile error of “undefined reference to…” and then the dll functions I’m calling.
I’ve been told that this means I havn’t linked to the library, but from what I’ve dug up in the QNX docs apparently dynamic linking is automatic.
If someone could point me in the right direction that would be great. Im not too familiar with makefiles, and I havn’t changed them from the standard ones generated by “QNX C Project” so this may likely be part of the problem.
You still have to link against the library at compile time so that the tools know where the unresolved symbols are going to be coming from, and so the the proper dependancies can be inserted into the binary’s ELF header. At runtime it will get loaded.