This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |