Mail Archives: djgpp/1997/03/30/07:25:23
Well all I want to do is create a very simple C++ program . I have
unzipped lgp271b.zip, gpp2721b.zip, obc2721b.zip, txi390b.zip,
gcc2721b.zip, djdev201.zip, bnu27b.zip and pmodel11.zip to their
default directories and updated my autoexec.bat.
Here is the program or 'prog1.cpp'
// Program 1.1
#include <iostream.h>
void main()
{
cout << "Hello! "
"Congratulations on your first"
" C++ program";
}
When I run 'cc1plus prog1.cpp' I always get
C:\djgpp\bin>cc1plus prog1.cpp
prog1.cpp:1: parse error before `/'
prog1.cpp:3: undefined or invalid # directive
then lots of 'time in' stuff. What am I doing wrong exactly? I am new
to C++ and therefore djgpp, so please explain in english.
- Raw text -