From mboxrd@z Thu Jan 1 00:00:00 1970 From: Troy Noble To: "'Liu Wang'" , Troy Noble Cc: "'cygwin@cygwin.com'" Subject: RE: help! Date: Wed, 15 Aug 2001 09:52:00 -0000 Message-id: <8F23E55D511AD5119A6800D0B76FDDE1CA3030@cpex3.channelpoint.com> X-SW-Source: 2001-08/msg00681.html gcc is doing the right thing. you don't want gcc to be trying to search for includes in /usr. It is trying to include from /usr/include as is proper, in other words. > ---------------------------------------------------- > $mount > c:\cygwin\usr\include on /usr type user > c:\cygwin\usr\include on /lib type user > C:\cygwin\bin on /usr/bin type system > C:\cygwin\bin on /usr/lib type system > C:\cygwin on / type system > c: on /cygdrive/c type user > s: on /cygdrive/s type user > u: on /cygdrive/u type user > ----------------------------------------------------- Your mount points are wrong. Did you change them at all? That doesn't look like the standard setup that cygwin's setup.exe creates. Specifically, based on the mount list you sent, if you do the following I would think it would start working: $ cd /bin $ umount /usr $ umount /lib $ umount /usr/lib $ mount C:\\cygwin\\lib /usr/lib $ mount C:\cygwin\bin on /usr/bin type system C:\cygwin\lib on /usr/lib type system C:\cygwin on / type system c: on /cygdrive/c type user s: on /cygdrive/s type user u: on /cygdrive/u type user Then /usr/include will map to c:\cygwin\usr\include and /usr/lib will map to c:\cygwin\lib as it should. And your problems should go away. Or re-run setup so it can re-create your mount points correctly. Which is probably the safest bet all the way around. And don't change the mounts that cygwin creates. And don't add new ones like /usr unless you are really sure it is in your best interest ;-> If setup is creating the mount points incorrectly as you've shown below, please let the list know because that might be a bug. Troy -----Original Message----- From: Liu Wang [ mailto:Wang@sigprowireless.com ] Sent: Wednesday, August 15, 2001 9:38 AM To: 'Troy Noble' Subject: RE: help! Dear Troy Noble, Thanks for your so kind help. My mount points look like the following: ---------------------------------------------------- $mount c:\cygwin\usr\include on /usr type user c:\cygwin\usr\include on /lib type user C:\cygwin\bin on /usr/bin type system C:\cygwin\bin on /usr/lib type system C:\cygwin on / type system c: on /cygdrive/c type user s: on /cygdrive/s type user u: on /cygdrive/u type user ----------------------------------------------------- I tried "gcc --verbose hello.c -o hello" and found the following: ------------------------------------------------------ /usr/lib/gcc-lib/i686-pc-cygwin/w.95.3-5/cpp0.exe .... /usr/local/include -idirafter /usr/include -idirafter /usr/include/w32api /cygdrive/c/hello/hello.c ... ------------------------------------------------------ -- 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/