From: av568 AT rgfn DOT epcc DOT edu (Beautiful Savior Lutheran Church) Newsgroups: comp.os.msdos.djgpp Subject: Re: Getting DJGPP to work? Date: 30 Mar 1997 20:45:03 GMT Organization: The Rio Grande Free-Net, El Paso Community College, El Paso, TX Lines: 30 Message-ID: <5hmjcf$g72@news.epcc.edu> References: NNTP-Posting-Host: rgfn.epcc.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Tekno Tom (tkt AT doreholm DOT demon DOT co DOT uk) wrote: > // 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 cc1plus is the C++ compiler. It expects the source code to already be preprocessed. If you *really* want to run each compiler pass manually (a *bad* idea, IMHO) you want to run 'cpp' first. If you want to compile normally, run 'gcc'. > 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. --- Beautiful Savior Evangelical Lutheran Church - av568 AT rgfn DOT epcc DOT edu We have what you need-- A Savior!