This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 2.9 on AIX 5L V5.1
- From: Joerg dot Richter at pdv-FS dot de
- To: helmut dot schroeger at rl-ag dot com, gcc at gcc dot gnu dot org
- Date: Mon, 4 Aug 2003 09:48:23 +0200
- Subject: 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