|
From: Yeoh H. <ye...@ye...> - 2002-05-04 04:18:18
|
MessageHi Juliano, I compiled and linked your program without any problems. I looked for the file crt0.o and yes there is no such file in any of the = Dev-C++ directories. The ones that I found were: crt1.0, crt2.0, crtmt.o = and crtst.o. I've also examined my Makefile.win and the paths to the libs are = correct. In the Makefile.win, I see that g++.exe is invoked twice, once = to compile the cpp file into .o file and then a second time to pass info = to the linker ld.exe to link the .o files with the standard libs to = produce an exe file. I'm using Dev-C++ 4.9.2.0 beta. Which version are you using? Perhaps = you can list your Makefile.win. Have you installed any other versions of gcc compilers on your system? = You might also want to check your system path to see which ld.exe is = executed. Your ld.exe is looking for a crt0.o. Do a search of your = harddisk for crt0.o. See if you can find it. Also search for ld.exe. Any = chances of multiple copies? This is a perplexing problem. Regards, Yeoh ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ Author of "How to Create an eBook Using Visual C++" Free Downloads at http://www.yeohhs.com ICT eBooks by Yeoh HS ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ ----- Original Message -----=20 From: Juliano P=E1vel Brasil Cust=F3dio=20 I've juste installed Dev-C++ in my computer (Win2K) and I tried to = compile the simple program bellow, but I've got the error message = "C:\DevC\Bin\ld.exe: cannot open crt0.o: No such file or directory". The = Dev-C++ is installed in a different directory because I was trying to = fix this problem, but I was not succesfull in doing it. =20 |