This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Keep getting ld skipping incompatible
- From: Blake McBride <blake at mcbride dot name>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 28 Sep 2007 20:52:38 -0500
- Subject: Keep getting ld skipping incompatible
- Reply-to: Blake McBride <blake at mcbride dot name>
I am using GCC 4.1.0 on OpenSUSE Linux 10.1 on a 32 bit machine. I have
no 64 bit anything installed that I am aware of.)
If I do: gcc t.c libgc.a
It works. (libgc.a is in the current directory)
If I do: gcc t.c -L`pwd` -lgc
I get:
/usr/lib/gcc/i586-suse-linux/4.1.0/../../../../i586-suse-linux/bin/ld:
skipping incompatible /home/blake/EuLisp/EuLysses/Gc/libgc.a when
searching for -lgc
/usr/lib/gcc/i586-suse-linux/4.1.0/../../../../i586-suse-linux/bin/ld:
cannot find -lgc
collect2: ld returned 1 exit status
The listed libgc.a is the one I am using (that is my current working
directory).
I am lost. Any help would be appreciated.
Blake McBride