www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/11/08/08:50:26

From: "Stephen M. Webb" <stephenw AT cryptocard DOT com>
To: Charles Wilkins <chas AT pcscs DOT com>, djgpp-workers AT delorie DOT com,
libstdc++@gcc.gnu.org
Subject: Re: i686-pc-msdosdjgpp-g++ problems (long)
Date: Fri, 8 Nov 2002 09:00:52 -0500
X-Mailer: KMail [version 1.3.1]
References: <lrplsuounbjm9n878rvu4e4sobqofcu437 AT 4ax DOT com>
In-Reply-To: <lrplsuounbjm9n878rvu4e4sobqofcu437@4ax.com>
MIME-Version: 1.0
Message-ID: <EXCHANGEVjVymIxDiD700000d02@pop.cryptocard.com>
X-OriginalArrivalTime: 08 Nov 2002 13:45:04.0515 (UTC) FILETIME=[0ADA4530:01C2872D]
Reply-To: djgpp-workers AT delorie DOT com

On November 7, 2002 06:00 pm, Charles Wilkins wrote:
>
> /root/updates/gcc/djgpp/cross/gcc-3.2-obj/i686-pc-msdosdjgpp/libstdc+
>+-v3/include/i686-pc-msdosdjgpp/bits/ctype_base.h:46: `
>    _U' was not declared in this scope
>    _L' was not declared in this scope
>
> ... many snips of the same error

This error used to come up (ok, many moons ago) when building a 
linux-hosted mingw32 cross compiler.  I remember patching things 
locally to get it to work and the patches were simple but I don't 
remember what they were.  The problem now no longer occurs with a 
mingw32 target out of the box, so I suggest that what you do is check 
what is done for mingw32, and try to reproduce that for a djgpp target.

The work lies mostly in the configure scripts and a custom ctype_base 
header, if I recall.  You may also find you also need to modify the 
configury files to fix problems in the cmath headers.  Just search for 
"mingw" in the config files.

My notes (dated near the end of January) show I had to configure 
binutils with the --without-newlib option and install them, install the 
target-specific headers in the install tree, then build gcc.  I'm not 
sure if that's still required.


-- 
Stephen M. Webb
stephen AT bregmasoft DOT com
stephenw AT cryptocard DOT com

- Raw text -


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