delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/24/12:18:33

From: pavenis AT lanet DOT lv
Message-ID: <B0000116935@stargate.astr.lu.lv>
To: karpfenteich AT gmx DOT de (Peter Karp), djgpp AT delorie DOT com
Date: Mon, 24 Jan 2000 16:11:07 +0200
MIME-Version: 1.0
Subject: Re: valarray: header file missing/false_name
In-reply-to: <388a1881.10548044@news.netcologne.de>
X-mailer: Pegasus Mail for Win32 (v3.12b)
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 22 Jan 00, at 21:00, Peter Karp wrote:

> Hi DJGPP gurus :-)
> 
> please forgive me my newbie question.
> 
> I tried to include <valarray> in a source file.

Please try to compile source with option -v and post output
	redir -eo gcc -v -c vectom.cpp >output.lst

> 
> DJGPP 2.03 complained:
> 
> E:\aa\cpp>gxx vectom.cpp
> In file included from d:/progra~1/djgpp/lang/cxx/valarray:6,
> from vectom.cpp:3:
> d:/progra~1/djgpp/lang/cxx/std/std_valarray.h:113:
> std/valarray_meta.h: No such file or directory (ENOENT)
> 
> So I looked if there's a file valarray_meta.h (in the subdir std). It
> didn't exist, but a file named _valarray_meta.h was there.
> 
> I renamed _valarray_meta.h to valarray_meta.h and retried to compile
> the source. This time with success.
> 

I renamed valarray_meta.h to _valarray_meta.h to avoid filename 
conflict in 2 cases:
	non LFN systems (eg. plain DOS)
	Win9X when NameNumericTails=1 in Windows registry

Preprocessor should automatically translate name when in't mentioned 
in file header.gcc in the same directory and option -remap is specified 
for cpp (it is automatically with DJGPP port of gcc-2.95.2)

> Is renaming the file the right fix for my problem here, or should I
> choose another solution? (which)
> 
No. Perhaps Your installation have some problem.

> Is this a problem in every DJGPP installation? Then it might be a
> general problem which should be fixed in the zip files?
> 
No.

Andris

- Raw text -


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