Mail Archives: djgpp/1996/04/25/03:56:11
In article <4lkuss$j7t AT mo6 DOT rc DOT tudelft DOT nl>, atmadja AT student DOT tn DOT tudelft DOT nl (S.A. Atmadja) wrote:
>>Now I have the problem that I can not compile C++
>>
>>and from the command line I try ...
>>
>>gcc hellocpp.cc -I\djgpp\lang\cxx hellocpp.cc -o hellocpp.exe
>
>Try adding -lgpp to the END of the line at the command prompt.
>Alternatively try using gxx instead of gcc (so a friend of mine say's,
>but I don't seem to have a gxx.exe).
You may also need to include the standard C++ library: "-lstdcx". In short:
gcc hellocpp.cc -IC:\djgpp\lang\cxx -o hellocpp.exe -lgpp -lstdcx
If you use gxx, you don't need -IC:\... or -lgpp. Make sure you set the DJDIR
environment variable to point to your djgpp directory.
- Raw text -