This is the mail archive of the gcc-help@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]

Keep getting ld skipping incompatible



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




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