GCC 2.9 on AIX 5L V5.1

Joerg.Richter@pdv-FS.de Joerg.Richter@pdv-FS.de
Mon Aug 4 11:22:00 GMT 2003


> Hi Folks !

Hi Helmut,

> gcc -c f.cpp

Why dont you use the g++ command?

> ar -r libf.a f.o

> gcc -c -fpic foo.cpp
> gcc -fpic -shared
> gcc -fpic -shared -o libfoo.so foo.o -lstdc++ -lm

You dont need -fpic for AIX.

> gcc -c main.cpp

> Now i try to link my main.o with the previous built libraries. This is
> the point i am not sure how it should work. I tried:

> gcc -o main -brtl -L. -lf -lfoo

Where is your main.o? Perhaps -Wl,-brtl helps. And use g++.

> Thank you very much in advance

Hope it helps


Joerg Richter 



More information about the Gcc mailing list