Mail Archives: djgpp/1996/05/27/06:35:08
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).
- Raw text -