Mail Archives: djgpp/1997/12/21/06:55:06
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.
- Raw text -