ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/21/06:55:06

Date: Sun, 21 Dec 1997 13:54:47 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Majestic <netpunk AT mail DOT telepac DOT pt>
cc: djgpp AT delorie DOT com
Subject: Re: C++ to DJGPP Conversion Problem !!!
In-Reply-To: <01bd0cb1$11b289e0$d7b141c2@nop14270>
Message-ID: <Pine.SUN.3.91.971221135356.8399Q-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019