Hi,
I have 3 seperate make file where,
1st one generates a static library libCanOpen.a,
(using ""ar -r ")
2nd one creates a dynamically linkable library libPixyCANopen.so
(using "g++ -Wall -fPIC -shared")
and the 3rd one creates the executable by linking it to libPixyCANopen.so.
The 1st two makefiles build without a single warning (-Wall is used)
The last Makefile is generating linking error like the following:
../lib/libPixyCANopen.so: undefined reference to `coTimerPulse'
../lib/libPixyCANopen.so: undefined reference to `releaseTimer'
nm command shows that the corresponding object names are mangled (e.g. _Z12releaseTimerv), Using extern "C" in the header file did not remove it.
But, I am using g++ for every compilation, so I think the mangling should not matter.
Any suggestion is appreciated.
Thanks,
Anirban