Problem compiling shared lib since 4.2.3
Bjoern Biesenbach
bjoern@bjoern-b.de
Wed Jun 11 19:43:00 GMT 2008
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@bjoern-b.de
Werner Hellweg 246 www.bjoern-b.de
D-44789 Bochum +49-234-6060267
vy73 de DF1BB gpg:CF4D555E +49-162-6824519
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20080611/a9d13108/attachment.sig>
More information about the Gcc-help
mailing list