From: Erik L. <e.l...@hc...> - 2006-08-28 20:36:40
|
Henri H=C3=A4kkinen wrote: >=20 > D:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:=20 > crt2.o: No such file: No such file or directory >=20 > collect2: ld returned 1 exit status >=20 I had a similar error once. If I remember well (can't check it for you=20 right now), it was caused when invoking ld directly. If that is the case with you also, try invoking ld through gcc (which is=20 recommended for regular purposes); this rises the chances that crt2.o is=20 found. So, instead of ld -shared -o foo.so foo.o ... do gcc -shared -o foo.so foo.o ... Beware of the rather big difference w.r.t. passing linker flags if you=20 change the invocation (not shown here, see the manual for gcc and ld). Erik Leunissen |