This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC 2.9 on AIX 5L V5.1


> 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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]