perl: relocation error: <long path>: undefined symbol: adInitAd2 I'm trying to include an external library which contains the adInitAd2 function. It is typed in the header file "ad2.h".
I've had success with this same library using swig in the past using the following compile string (after generating the _wrap code with swig) gcc -g -c DWG_wrap.c -I/usr/local/include/ -I\ /usr/lib/perl5/5.6.1/i386-linux/CORE/ && ld -shared DWG_wrap.o -o DWG.so\ /usr/local/lib/ad2.a /usr/local/lib/ad2pic.a where the swig interface file had the following includes: #include "ad2.h" #include "odio.h" Using these same includes in my Inline code, I get the above mentioned relocation error. Any suggestions as to what causes this? Thanks, Eric