From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: Help! Won't compile C++ Date: 27 Aug 2000 21:09:40 GMT Organization: Aachen University of Technology (RWTH) Lines: 25 Message-ID: <8oc02k$j7n$1@nets3.rz.RWTH-Aachen.DE> References: <000001c0106f$91dbf6a0$f4dad840 AT new300> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 967410580 19703 137.226.32.75 (27 Aug 2000 21:09:40 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 27 Aug 2000 21:09:40 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com S. Petersmeyer wrote: > #include > void main() > { > cout<<"hello world"< } > C:\djgpp\bin>gcc -c -Wall sample.cc > sample.cc:3: return type for `main' changed to `int' The sample program contains an error. main returns int, not void. > C:\djgpp\bin>gxx -o sample.exe sample.o > c:/djgpp/bin/ld.exe: cannot open -lgpp: No such file or directory (ENOENT) You didn't download 'lgp2952b.zip', and you may be using the wrong C++ compiler driver. Try 'gpp' instead of gxx. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.