Date: Mon, 27 May 1996 13:21:04 +0200 (IST) From: Eli Zaretskii To: Kaspar Landsberg Cc: djgpp AT delorie DOT com Subject: Re: gcc cannot link C++ programs w/o errors In-Reply-To: <69gjJ0Y$hjB@kl.in-berlin.de> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 27 May 1996, Kaspar Landsberg wrote: > i'm not able to {compile,link} any C++ program. It seems that DJGPP is > missing something... here's what i get.. > > 1. gcc -lgpp -v -o prog prog.cc You put the library (-lgpp) in the wrong position on the command line: it should be the last argument. Please read section 8.7 of the DJGPP FAQ list (available as v2/faq200b.zip from the same place you get DJGPP). It tells you more about how to link C++ programs, so you won't have similar problems in the future. I'd also advise to use gxx rather than gcc when linking C++ programs (also explained in that section of the FAQ).