Page 2 of 2

Re: need help with cygwin -l option

Posted: Tue Jan 26, 2010 12:09 pm
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)

Re: need help with cygwin -l option

Posted: Wed Jan 27, 2010 12:52 am
by mcheung63
Hi.
the .so is an ELF format, I compiled it by my i386-elf-gcc cross compiler.
thanks

Re: need help with cygwin -l option

Posted: Wed Jan 27, 2010 2:37 am
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!

Re: need help with cygwin -l option

Posted: Wed Jan 27, 2010 2:44 am
by mcheung63
oh yeah