From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: Compile error: .../ld.exe: cannot find -lgcc Date: 31 May 2000 17:26:03 GMT Organization: Aachen University of Technology (RWTH) Lines: 24 Message-ID: <8h3hvb$s7h$1@nets3.rz.RWTH-Aachen.DE> References: <8h3egf$qf0$1 AT bob DOT news DOT rcn DOT net> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 959793963 28913 137.226.32.75 (31 May 2000 17:26:03 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 31 May 2000 17:26:03 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com c wrote: > 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 ^^^^^^ That path name is your problem, already. There should'nt usually be a directory bin_2 below your DJGPP installation directory, and most definitely, ld.exe shouldn't be sitting in it. > The long file names and directory stucture were maintained when I > decompressed the files. Actually, they were not maintained unharmed. You used an unzipper that tried to be clever by not letting you write files into already existing directories. Delete the whole DJGPP tree, switch off that option in your unzipper and unpack the stuff from scratch. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.