"Martin Guy" <martinwguy@xxxxxxxx> writes: > On 4/1/08, Henrik Grindal Bakken <hgb@xxxxxxxxxx> wrote: >> Henrik Grindal Bakken <hgb@xxxxxxxxxx> writes: >> >> > Fails like this: >> > $ /tmp/fnord >> > terminate called after throwing an instance of 'char*' >> > terminate called recursively >> > Aborted > >> dynamic linking fails. > > martin@n2100:~$ g++ fnord.cpp > martin@n2100:~$ ./a.out > I caught hello > martin@n2100:~$ file a.out > a.out: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux > 2.6.14, dynamically linked (uses shared libs), not stripped > > Do you mean when you import your cross-compiled .o's to it and link > then there? Ah, no. I meant that if I do (on your box): $ g++ -o fnord fnord.cpp and run it on my box, it fails. It works on your box. If I do $ g++ -static -o fnord.static fnord.cpp and run it, it works. And it doesn't seem to matter if I use your or mine toolchain. My libraries on target are stripped, but it doesn't appear to make a difference if I use the non-stripped version. It appears that either I make a mistake on transfer of .so files to target, or my toolchain is built with inferior shared libraries (but working static libraries). -- Henrik Grindal Bakken <hgb@xxxxxxxxxx> PGP ID: 8D436E52 Fingerprint: 131D 9590 F0CF 47EF 7963 02AF 9236 D25A 8D43 6E52