From: "c" Newsgroups: comp.os.msdos.djgpp Subject: Re: Compile error: .../ld.exe: cannot find -lgcc Date: Sun, 4 Jun 2000 20:07:36 -0500 Lines: 59 Message-ID: <8her5v$rno$1@bob.news.rcn.net> References: <8h3egf$qf0$1 AT bob DOT news DOT rcn DOT net> X-Trace: leU61av56JwZ22BRhI8wMZ3SHik0p32MdIJuKUv7huI= X-Complaints-To: abuse AT rcn DOT com NNTP-Posting-Date: 5 Jun 2000 00:10:39 GMT X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, this worked. Thanks a ton. c wrote in message news:8h3egf$qf0$1 AT bob DOT news DOT rcn DOT net... > 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. > > > > > >