Mail Archives: djgpp/2004/04/18/18:00:45
charlesreed AT eatel DOT net (Charles Reed) wrote:
> I recently installed DJGPP on my system. There was no
> problem during the install. However I can compile C programs without
> any problems but when I try to compile a C++ program I get a long
> list of error messages and the file will not compile.
> Can anyone suggest what the problem might
> be ?
Since you didn't give us the program you tried to compile, nor the
error messages you received, it's hard to say. But try this:
Cut and paste the following program and save it as "hello.cpp":
#include <iostream>
int main()
{
std::cout << "Hello, World.";
}
Now, compile the program using the following command line:
gpp -Wall -W -pedantic hello.cpp -o hello.exe
If it compiles successfully, then the problem is with your program or
command line invocation, and probably not with your installation.
If you get errors, though, post them here, so that people can see
what's going on.
Good luck.
Best regards,
Tom
- Raw text -