From: "c" Newsgroups: comp.os.msdos.djgpp Subject: Compile error: .../ld.exe: cannot find -lgcc Date: Wed, 31 May 2000 12:23:55 -0500 Lines: 48 Message-ID: <8h3egf$qf0$1@bob.news.rcn.net> X-Trace: Shc6EzLwu3vomYqz9h5LUYGWNsdskrmI04xDHrKpxIk= X-Complaints-To: abuse AT rcn DOT com NNTP-Posting-Date: 31 May 2000 16:26:55 GMT X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MSMail-Priority: Normal X-Priority: 3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, when I try to link a file, I get the following error: (from the DOS prompt, using gcc or gxx) c:\djgpp\bin_2/ld.exe: cannot find -lgcc (from RHIDE) Creating: myprogram.exe Error: C:\DJGPP\BIN_2/ld.exe: cannot find -lstdcxx This is on Windows 95, Rhide version 1.4, and DJGPP version 2.03. The long file names and directory stucture were maintained when I decompressed the files. I downloaded them using the zip picker at the Delorie site so I think they're complete. I've read all the documentation I've found and nothing helped--the djgpp.env file is in order, the autoexec has the path specified (I cut and pasted the path set command directly from the DJGPP FAQ), and the ld.exe file is there. The only modification I've made so far is the addition of lines to the autoexec file. After adding the 2 recommended ones: set DJGPP=C:\DJGPP\DJGPP.ENV set PATH=C:\DJGPP\BIN;%PATH% and getting an error message about the program not finding files, I added a few more. Here are the names of the files that the program couldn't find and the path commands that I added. File not found | Line added to fix it gcc.exe -------------set PATH=C:\DJGPP\BIN_1;%PATH% cpp.exe -------------set PATH=C:\DJGPP\lib_1\gcc-lib\djgpp\2.952;%PATH% as.exe---------------set PATH=C:\DJGPP\BIN_2;%PATH% cc1plus.exe----------set PATH=C:\DJGPP\lib_4\gcc-lib\djgpp\2.952;%PATH% Thank you very, very much in advance, Charles ------ do not meddle in the affairs of dragons, for you are crunchy and taste good broiled.