linking db2 libraries

Reuti reuti@staff.uni-marburg.de
Thu Sep 16 10:30:00 GMT 2004


Hi again,

please try to link it static!

> We are using gcc 3.4.1 on out development machine and gcc 2.95.3 on our QA
> machine.I have made an exe on our development machine using the foll cmd.
> 
> LINK=g++ -shared -fPIC
> LNFLAGS=-o

LINK=g++ -static
LNFLAGS=-o

the -shared -fPIC are most useful, if you specify -c to build an object file.

Cheers - Reuti



More information about the Gcc-help mailing list