delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/13/13:43:32

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: Eric Hanchrow <offby1 AT blarg DOT net>
Subject: Re: gcc -mno-cygwin finds the wrong include files
Date: Tue, 13 Apr 2004 10:42:53 -0700
Lines: 42
Message-ID: <87ptab7p0i.fsf@offby1.atm01.sea.blarg.net>
References: <4078B62F DOT 3050108 AT scytek DOT de> <407C2306 DOT 3030905 AT scytek DOT de>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: offby1.atm01.sea.blarg.net
User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

    Hi, could someone please confirm that this is a bug, and not a
    problem that exists only on this computer.

I just tried it, and got reasonable-looking output:

# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "<stdin>"
# 1 "/lib/gcc-lib/i686-pc-mingw32/3.3.1/include/stddef.h" 1 3 4
# 158 "/lib/gcc-lib/i686-pc-mingw32/3.3.1/include/stddef.h" 3 4
typedef int ptrdiff_t;
# 220 "/lib/gcc-lib/i686-pc-mingw32/3.3.1/include/stddef.h" 3 4
typedef unsigned int size_t;
# 332 "/lib/gcc-lib/i686-pc-mingw32/3.3.1/include/stddef.h" 3 4
typedef short unsigned int wchar_t;
# 2 "<stdin>" 2

    > Hi,
    > when I use the following command gcc finds the wrong include
    > file.
    > $ echo "#include <stddef.h>" | gcc -mno-cygwin -E -
    > # 1 "<stdin>"
    > # 1 "<built-in>"
    > # 1 "<command line>"
    > # 1 "<stdin>"
    > # 1 "/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/stddef.h" 1 3 4
    > # 158 "/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/stddef.h" 3 4
    > typedef int ptrdiff_t;
    > # 220 "/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/stddef.h" 3 4
    > typedef unsigned int size_t;
    > # 332 "/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/stddef.h" 3 4
    > typedef short unsigned int wchar_t;
    > # 2 "<stdin>" 2

-- 
"I said, `Shut up!' " Ms. Glass recalled ... " `You do not!
Oh my God! Oh my God! Oh my God!' So I went to Nina, my boss, and
said, `Oh my God! Oh my God! Oh my God!' "

        --- Julie Salamon, in the New York Times


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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