Date: Mon, 19 Jan 1998 12:25:30 -0800 (PST) Message-Id: <199801192025.MAA04147@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: "John M. Aldrich" , djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: c++ include file problems Precedence: bulk At 03:22 1/18/1998 -0500, John M. Aldrich wrote: >Kim Robert Blix wrote: >> >> Im having a problem I cant find in any FAQ. >> >> I have just installed djgpp, and everything seemed to work fine until >> i tried to compile a c++ program. It seems to me like the compiler >> cant find the c++ include files. I have attached a log of what >> happends here, I just want to mention that I have not edited >> djgpp.env. Any and all help is appreciated. > >You're not linking the C++ libraries into your program. It's not enough >to include the headers; the compiler must be told where to find the >actual code that the headers declare. You may either add "-lgpp" to the >end of your command line, or substitute 'gxx' for 'gcc'. Correction: Add `-lstdcxx -liostr'. `-lgpp' will only link the libg++ class library, which may not have everything you need and will also make your program GPL. `gxx' is the preferred method, though, and also easier to type. Nate Eldredge eldredge AT ap DOT net