Date: Wed, 4 Dec 1996 08:27:51 +0200 (IST) From: Eli Zaretskii To: Lyndon Handscomb cc: djgpp AT delorie DOT com Subject: Re: help please: djgpp temp file error. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 3 Dec 1996, Lyndon Handscomb wrote: > I have a problem with djgpp. I've unzipped djdev109, djgas138 and > djgcc222 (which I believe is the minimum set for the compiler). Gee, that's a really *ancient* version of DJGPP! Where did you get it? I highly recommend to get the latest version 2.01 at this URL: ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2/readme.1st > I can compile c programs ok (with "gcc a.c"), but when I compile a c++ > program (with "gcc b.cc"), I get the errors: > > > Bad command or filename > Can't open c:/tmp/cc000061.s for readingfile not found. > c:/djgpp/lib/crt0.o: Undefined symbol _main referenced from text segment It seems that you don't have the C++ compiler, only the C compiler. You need to get and install gppNNN.zip and lgpNNN.zip (the compiler and the C++ class libraries) before you can compile C++ stuff.