Problem compiling shared lib since 4.2.3

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

 



Hi,

I'm trying to comile a shared library. This lib will use some functions
implemented in another a lib. Later both will linked together in my main
program.
When compiling my lib I get this:

../PG/PGutili3.c:285: undefined reference to `GetOverAllWeight'
/usr/bin/ld: liblsclib.so: hidden symbol `GetVolume' isn't defined
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[1]: *** [sharedlib] Error 1

This is my command line:
g++ -shared -fPIC -o liblsclib.so ../../All/datolist.o ....

With gcc-4.2.1 this worked just fine.
I've tried 4.2.3 and 4.3, both throw the same messages. I'm not quite
sure if its really a gcc or maybe a linker? problem, but I don't know
where else to start.

Thanks for you help

Bjoern
-- 
  Bjoern Biesenbach        bjoern@xxxxxxxxxxx
  Werner Hellweg 246          www.bjoern-b.de
  D-44789 Bochum              +49-234-6060267
  vy73 de DF1BB gpg:CF4D555E  +49-162-6824519

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux