Problems to build a cross compiler under Linux
Vermeulen Jan
Jan.Vermeulen@siemens.atea.be
Tue Nov 19 23:25:00 GMT 2002
Karim,
>[...] The compilation [of cygwin crosscompiler] was successfull (but I had
>to move some headers files) but when I try to compile a simple hello.c :
>/home/karimb/cross/build/bin/i686-cygwin32-gcc hello.c, I got this error :
>
>./../lib/gcc-lib/i686-cygwin32/3.2/../../../../i686-cygwin32/bin/ld: ne
peut
>trouver -lcygwin
>collect2: ld a retourné 1 code d'état d'exécution
>(sorry for the french language)
>
>so it can t find a cygwin library ...
My knowledge of cygwin is very limited, but as you got the crosscompiler
installed correctly, technically speaking, it should all work.
ld can't find a cygwin library because the LD-PATH does not include your
$PREFIX/lib (or $PREFIX/i686-cygwin32/lib) directory.
Try this on the commandline and see if it does the right thing:
[prompt]$ /home/karimb/cross/build/bin/i686-cygwin32-gcc
-L/home/karimb/cross/build/lib hello.c
or
[prompt]$ /home/karimb/cross/build/bin/i686-cygwin32-gcc
-L/home/karimb/cross/build/i686-cygwin32/lib hello.c
So the cygwin crosscompiler knows where it can find the cygwin library.
I hope this helps,
Jan
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list