Hi David,
please see my comments below.
Cheers,
Klaus
>
> Klaus,
>
> Since it's not a bug in your code (it works for me too, at least as
> written), I suspect a problem with your gcc installation, or you're
> picking up the wrong gcc.
>
> What do:
>
> type -a gcc
gcc is /usr/bin/gcc
gcc is /bin/gcc
> cygcheck gcc
Found: C:\cygwin\bin\gcc.exe
C:\cygwin\bin\gcc.exe
C:\WINNT\System32\KERNEL32.dll
C:\WINNT\System32\ntdll.dll
C:\cygwin\bin\cygwin1.dll
Use -h to see help about each section
> cygcheck -c gcc
Cygwin Package Information
Package Version
gcc 3.2-1
Use -h to see help about each section
>
> return and what does
>
> gcc -v -Wall prog3.c -o prog3
>
> say?
Please see the attached file.
>
> Regards,
> David
>
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /netrel/src/gcc-3.2-1/configure --enable-languages=c,c++,f77,java
--enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls
--without-included-gettext --enable-interpreter --disable-sjlj-exceptions
--disable-version-specific-runtime-libs --enable-shared --build=i686-pc-linux
--host=i686-pc-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr
--exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib
--includedir=/nonexistent/include --libexecdir=/usr/sbin
Thread model: posix
gcc version 3.2 20020818 (prerelease)
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/cc1.exe -lang-c -v -D__GNUC__=3
-D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=0 -D__GXX_ABI_VERSION=102 -D_X86_=1 -D_X86_=1
-Asystem=winnt -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386
-D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ -D__tune_pentium2__
-D__tune_pentium3__ -D__stdcall=__attribute__((__stdcall__))
-D__fastcall=__attribute__((__fastcall__)) -D__cdecl=__attribute__((__cdecl__))
-D_stdcall=__attribute__((__stdcall__)) -D_fastcall=__attribute__((__fastcall__))
-D_cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386__
-D__i386 -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -isystem
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../include/w32api -isystem
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/lib/../../include/w32api
prog3.c -quiet -dumpbase prog3.c -Wall -version -o
/cygdrive/d/Profiles/akm007/LOCALS~1/Temp/cccJzUFz.s
GNU CPP version 3.2 20020818 (prerelease) (cpplib) (80386, BSD syntax)
GNU C version 3.2 20020818 (prerelease) (i686-pc-cygwin)
compiled by GNU C version 3.2 20020815 (prerelease).
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/i686-pc-cygwin/include"
ignoring duplicate directory "/usr/i686-pc-cygwin/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
/usr/include/w32api
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/as.exe
--traditional-format -o /cygdrive/d/Profiles/akm007/LOCALS~1/Temp/ccGQpzyi.o
/cygdrive/d/Profiles/akm007/LOCALS~1/Temp/cccJzUFz.s
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/collect2.exe -Bdynamic --dll-search-prefix=cyg -o
prog3.exe /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../crt0.o
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/crtbegin.o -L/usr/lib/gcc-lib/i686-pc-cygwin/3.2
-L/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../..
/cygdrive/d/Profiles/akm007/LOCALS~1/Temp/ccGQpzyi.o -lgcc -lcygwin -luser32
-lkernel32 -ladvapi32 -lshell32 -lgcc /usr/lib/gcc-lib/i686-pc-cygwin/3.2/crtend.o
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/