[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: undefined reference to `boot_DynaLoader'



[Please wrap your lines!  It makes it much easier to read, and thus more
likely that you'll get a response.  Anywhere between 70 and 80 is
acceptable; 72 seems to be a nice value.]

On Thu, May 22, 2003 at 02:21:49PM -0600, Valsecchi, Patrick wrote:
> 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?

Just a guess, but are you using the same version of g++ for everything?
g++ 3.2 has a different ABI to g++ 2.95.4, and mixing C++ stuff from the
two versions *will* break things.

-- 
Rob Weir <rweir@ertius.org>  |   mlspam@ertius.org   |   http://www.ertius.org/
GPG keys: 1024D/1E73B7CD, 4096R/3ABDE5EC     |      Do I look like I want a CC?
Words of the day: illuminati Verisign Clinton AFSPC Compsec InfoSec USCOI CESID

Attachment: pgpb9yQ20Yh3S.pgp
Description: PGP signature


Reply to: