From: "Emanuele Z." Newsgroups: comp.os.msdos.djgpp Subject: Re: Help: C programs are OK, while I can't compile C++! Date: Thu, 28 Jan 1999 03:06:57 +0100 Organization: TIN Lines: 43 Message-ID: <78ogam$9p2$1@nslave1.tin.it> References: <78nlsq$40j$1 AT nslave1 DOT tin DOT it> NNTP-Posting-Host: a-rm46-20.tin.it Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com DooMWiz ha scritto nel messaggio ... > [...] > Well, either way, a library's filename > got truncated to 8 characters, using > the stupid tilde (~), because Win98 wanted > it that way... Make sure you > have the LFN line in djgpp.env set to Y if you're using WinZip. I checked the LFN line in djgpp.env, and it was already set to “y”, and I have no file truncated (since I used WinZip 7.0 to unzip all the stuff). The compiler seems to find the libraries, but it looks like they were full of sintax errors(!), since the compiler returns a lot of occurrences of a strange “parse error” when it tries to read the libraries. It happens any time I include a C++ library, even if I don't use any C++ statement in my code, (even if I try to compile an empty program like this:) # include int main(void) { } When I remove the line # include everything works fine. I'm probably making a stupid mistake somewhere, or I have to use some compiler switch to turn on C++ compilation... > Sorry, but > it's been so long since I had that problem, so I forgot the filename. > Hope that helps somewhat. Thank you very much, your suggestion was very kind. Bye, Emanuele.