undefined reference to `boot_DynaLoader'
Hi,
I trying to write a C++ soft with embeded perl (my perl scripts are using the Dynaloader package indirectly), following the example I found in the doc. But I have a linker error:
RELEASE/perlxsi.o: In function `xs_init':
RELEASE/perlxsi.o(.text+0xf): undefined reference to `boot_DynaLoader'
perlxsi.c is generated using "perl -MExtUtils::Embed -e xsinit -- -o perlxsi.c" and I use the following flags for the linker:
gcc -lstdc++ -lpthread -lxerces-c -lACE -rdynamic -L/usr/local/lib /usr/lib/perl/5.6.1/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.6.1/CORE -lperl -ldl -lm -lc -lcrypt ...
I checked that my references to boot_DynaLoader (supposed to implemented be in DynaLoader.a) are always declared 'extern "C"'. I tried a lot of things suggested on the web and nothing helped. I'm lost here. Does anybody have an idea?
Thanks.
---
-°) Patrick Valsecchi
/\\
_\_v
Reply to: