gcc -mno-cygwin finds the wrong include files

Eric Hanchrow offby1@blarg.net
Tue Apr 13 17:42:00 GMT 2004


 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/


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /