delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/30/19:04:19

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Authentication-Warning: hp2.xraylith.wisc.edu: khan owned process doing -bs
Date: Tue, 30 Jan 2001 18:01:52 -0600 (CST)
From: Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU>
To: Christopher Abbey <cabbey AT bresnanlink DOT net>
cc: cygwin AT sources DOT redhat DOT com
Subject: Re: -mno-cygwin and c++ stl... progress?
In-Reply-To: <Pine.LNX.4.21.0101301615470.3671-100000@tweedle.cabbey.net>
Message-ID: <Pine.HPP.3.96.1010130175812.2988Q-100000@hp2.xraylith.wisc.edu>
MIME-Version: 1.0

On Tue, 30 Jan 2001, Christopher Abbey wrote:

> /jikes/cvs/msvcbld/src $ make
> /usr/local/mingw/bin/g++ -DHAVE_CONFIG_H -I. -I../../jikes/src -I.     -g
> -O2 -c -o ast.o ../../jikes/src/ast.cpp
> In file included from ..\..\jikes\src\platform.h:205,
>                  from ..\..\jikes\src\ast.h:14,
>                  from ../../jikes/src/ast.cpp:11:
> ..\..\jikes\src\tuple.h: In method `void Tuple<T>::AllocateMoreSpace()':
> ..\..\jikes\src\tuple.h:55: unknown escape sequence `\.'
> ..\..\jikes\src\tuple.h:55: unknown escape sequence `\j'
[...]

I need to see the pre-processed file to know what is really happening,
but since I don't have that, I'll guess. The problem I believe is the
following: cpp produces #line directives with '\\' in the include file
names for Mingw, and C++ parser is choking due to a bug. I believe I 
fixed most of these in gcc-2.95.2-1 for Mingw, but users have reported
at least one case where it still *may* happen.

To test it out this hypothesis, try the following: Repeat the compile
command above with -save-temps option added, and that will create file
called ast.ii. Edit ast.ii and replace all '\\' in filenames (in all
the # and #line directives) with '/', and then run the compile command
on the .ii instead of the .cpp file. If it works, you've found the bug.

If not, send me the preprocessed file along with compiler version (gcc 
-v).

Regards,
Mumit



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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