Mail Archives: djgpp/1997/03/30/12:09:49
Tekno Tom <tkt AT doreholm DOT demon DOT co DOT uk> wrote in article
<VA DOT 00000011 DOT 0004e48c AT doreholm DOT demon DOT co DOT uk>...
> 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.
>
>
>
To compile your C++ program, you need to run gcc. You also need to set up
the command line differently.
--
Dennis Moran (aka Coolio)
coolio AT coolio9 DOT com
http://coolio9.com/
- Raw text -