cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/27/21:26:13

From: "Emanuele Z." <My_email_address_is_emazep AT usa DOT net>
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> <D95E81B848CD7E3F DOT 5FDFA78853191281 DOT 528551932D93FE98 AT library-proxy DOT airnews DOT net>
NNTP-Posting-Host: a-rm46-20.tin.it
Mime-Version: 1.0
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 <iostream.h>
int main(void) {
}

When I remove the line
# include <iostream.h>
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.


- Raw text -


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