static linking libgcc.a

D

deodiaus

I am running under aix4.3 using g++!

I am trying to link a module, but getting a problem.
When I specify
g++-3.2.1 -g -O0 -Wall -Wno-unused -Werror -o foo foo.o
/usr/ibmcxx/lib/libC.a /lib/crt0.o /usr/lib/libm.a /usr/lib/libg.a
/usr/lib/libc.a /usr/lib/libpthreads.a
/usr/gnu/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/3.2.1/libgcc.a -bstatic

I get an error message

ld: 0706-006 Cannot find or open library file: -l stdc++
ld:eek:pen(): A file or directory in the path name does not exist.
ld: 0706-006 Cannot find or open library file: -l gcc_s
ld:eek:pen(): A file or directory in the path name does not exist.
ld: 0706-005 Cannot find or open file: libgcc.a
ld:eek:pen(): A file or directory in the path name does not exist.
ld: 0706-006 Cannot find or open library file: -l gcc_s
ld:eek:pen(): A file or directory in the path name does not exist.
ld: 0706-005 Cannot find or open file: libgcc.a
ld:eek:pen(): A file or directory in the path name does not exist.

Now, I did specify the location of libgcc.a, so why is it complaining?

Does anyone know of tutorials for this sort of problem
I found one good site,
http://unix.ittoolbox.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top