ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2009/01/02/11:30:48

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Rugxulo <rugxulo AT gmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: errors using C++ libraries
Date: Fri, 2 Jan 2009 08:28:42 -0800 (PST)
Organization: http://groups.google.com
Lines: 86
Message-ID: <37e501e1-688d-4814-9043-5f53eeacba10@r15g2000prh.googlegroups.com>
References: <fe137193-3c79-4ae8-82b7-2f0e438942fc AT g1g2000pra DOT googlegroups DOT com>
<21cb02cc-b32a-4057-b191-8dcd61624c63 AT p2g2000prf DOT googlegroups DOT com>
<9e625b31-0599-4156-90c1-0d98aeba94c4 AT e6g2000vbe DOT googlegroups DOT com>
<24847567-cad8-4c1e-ac21-dc24ae7f06c3 AT v39g2000pro DOT googlegroups DOT com>
NNTP-Posting-Host: 65.13.115.246
Mime-Version: 1.0
X-Trace: posting.google.com 1230913723 25558 127.0.0.1 (2 Jan 2009 16:28:43 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Fri, 2 Jan 2009 16:28:43 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: r15g2000prh.googlegroups.com; posting-host=65.13.115.246;
posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5)
Gecko/2008120122 Firefox/3.0.5,gzip(gfe),gzip(gfe)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id n02GU8Xv002575
Reply-To: djgpp AT delorie DOT com

Hi,

On Jan 2, 3:15 am, Jim Michaels <jmich DOT  DOT  DOT  AT yahoo DOT com> wrote:
> On Jan 1, 9:14 am, Rugxulo <rugx DOT  DOT  DOT  AT gmail DOT com> wrote:
> > On Dec 31 2008, 4:55 pm, Jim Michaels <jmich DOT  DOT  DOT  AT yahoo DOT com> wrote:
>
> > > I was able to compile programs just fine.  now I can't.  I haven't
> > > changed anything. I don't know - maybe the mcafee antivirus or
> > > webroot spysweeper got a hold of something and deleted it, but
> > > that seems farfetched.

Antiviruses do seem to be fairly braindead in their heuristics / false
positives (and some too aggressive in their quarantines), but since
DJGPP.ENV is pure text, I doubt it flagged that.

> > What GCC/G++ are you using? (4.2.3? 4.3.2?) What DJDEV? (2.03? 2.04?)
> > What BinUtils? (2.16.1? 2.17? 2.19?) What OS? (MS-DOS 7.10? FreeDOS?
> > WinXP?) Are you using an LFN-aware system or not? Did you unpack on an
> > LFN-aware system? Did you upgrade any DJGPP packages to newer versions
> > recently? Is your %DJGPP% env. variable still set correctly? Did your
> > DJGPP.ENV file get modified recently?
>
> F:\DJGPP>gpp --version
> gpp.exe (GCC) 4.1.0
>
> C:\DJGPP>gpp --version
> gpp.exe (GCC) 4.2.3
>
> I think I am using 2.04 for the one on c: and 2.03 for the one on f:.
> OS: XP Pro SP3. (OS=Windows_NT) on f: (2.03) binutils 2.17.  
> on c:  binutils 2.17
>
> > Are you using an LFN-aware system or not? Did you unpack on an
> > LFN-aware system?
>
> That is not relevant to XP. XP does not respond to changes in the
> registry for LFN.  that is for win9x.  So yeah, it was probably LFN-
> aware.  NT family systems mangle the long filepaths into tildes with a
> number into 8.3.  I saw a microsoft KB article that says you can't
> change that.

I meant did you use an LFN-aware system and/or use an LFN-aware
unzipper. You can actually unzip for SFN even on WinXP, e.g. if you
wanted to use the same install in pure DOS or Windows. Of course,
you'd have to be using FAT32 because DOS normally doesn't understand
NTFS (without 3rd-party drivers, which I found unreliable). Actually,
Win98 and WinXP use slightly different schemes for their SFN name
generation, but that's probably not an issue here.

> tried it using command.com, same errors.
>
> gpp.exe: environment variable DJGPP points to corrupt file 'f:/djgpp/
> 2.03/v2/djg
> pp.env'
> C:\PRJ\MD5\MD5-1.0\DOS>dir f:\djgpp\2.03\v2\djgpp.env
> The system cannot find the path specified.
>
> (I do not know where to get the file from)

DJGPP.ENV is found in DJDEV204.ZIP or similar.

I'm blindly guessing that your .ENV file is missing something
important like this (although I recommend just re-unzipping the
original version instead of just adding this manually):

CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/lang/cxx;%DJDIR%/
include


Just for the record, here's the file sizes for 2.03 and 2.04 DJGPP.ENV
files:

DJDEV203.ZIP:

djgpp.env      3,592           Mar,02,2002  05:17:52p


DJDEV204.ZIP:

djgpp.env      3,764           Apr,23,2003  06:57:42a

Here's a link to the copy in CVS if you don't want to re-download the
whole DJDEV*.ZIP archive(s).

http://www.delorie.com/bin/cvsweb.cgi/djgpp/djgpp.env?rev=1.16

- Raw text -


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