need help with cygwin -l option

Programming, for all ages and all languages.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: need help with cygwin -l option

Post by Combuster »

On a related note, I bet 20 invisible tokens that the .so in question is not an ELF dynamic library, but rather a COFF object file. Any takers? (@op: hint hint)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
mcheung63
Member
Member
Posts: 175
Joined: Thu Jun 22, 2006 8:33 am
Location: Hong Kong
Contact:

Re: need help with cygwin -l option

Post by mcheung63 »

Hi.
the .so is an ELF format, I compiled it by my i386-elf-gcc cross compiler.
thanks
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: need help with cygwin -l option

Post by Solar »

The point Combuster is desperately trying to make is that, in the screenshot you provided, you are not using a cross-compiler.

Look at the 'ld' error message:

Code: Select all

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld
You see the part where it says "i686-pc-cygwin"? Whereever your cross-compiler toolchain might be located, you are not using it!
Every good solution is obvious once you've found it.
User avatar
mcheung63
Member
Member
Posts: 175
Joined: Thu Jun 22, 2006 8:33 am
Location: Hong Kong
Contact:

Re: need help with cygwin -l option

Post by mcheung63 »

oh yeah
Post Reply