Mail Archives: djgpp/1998/01/19/18:30:17
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
- Raw text -