Newsgroups: comp.os.msdos.djgpp From: "Dennis Moran" Subject: Re: Getting DJGPP to work? Message-ID: <01bc3d17$ec2dd4e0$620520ce@coolio-s-server> Date: Sun, 30 Mar 1997 14:45:29 GMT References: Lines: 40 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Tekno Tom wrote in article ... > 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 > > 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/