Date: Sun, 21 Dec 1997 13:54:47 +0200 (IST) From: Eli Zaretskii To: Majestic cc: djgpp AT delorie DOT com Subject: Re: C++ to DJGPP Conversion Problem !!! In-Reply-To: <01bd0cb1$11b289e0$d7b141c2@nop14270> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On 19 Dec 1997, Majestic wrote: > This code compiles under Borland C++, but when i use DJGPP the compiler > put lots of error messages on screen. > Whats going on ? Is that a C++ program? If so, then one possible reason is that you gave your source file a .c extension. GCC assumes all .c files are C (not C++) programs, and compiles them as such. Try renaming your source into something with a .cc extension and see if that helps. If it does, you might consider reading section 8.4 of the DJGPP FAQ list (available as v2/faq210b.zip from the same place you get DJGPP) which explains this issue in more detail.