By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,134 Members | 1,742 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,134 IT Pros & Developers. It's quick & easy.

static linking libgcc.a

P: n/a
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:open(): A file or directory in the path name does not exist.
ld: 0706-006 Cannot find or open library file: -l gcc_s
ld:open(): A file or directory in the path name does not exist.
ld: 0706-005 Cannot find or open file: libgcc.a
ld:open(): A file or directory in the path name does not exist.
ld: 0706-006 Cannot find or open library file: -l gcc_s
ld:open(): A file or directory in the path name does not exist.
ld: 0706-005 Cannot find or open file: libgcc.a
ld:open(): 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
Jul 22 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.