Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Bartc <bc@freeuk.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: OT - gcc for Windows not being recognized by Windows 7 |
| Date | 2015-07-05 15:34 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <mnbf72$a1$1@dont-email.me> (permalink) |
| References | (13 earlier) <mmesqd$b4s$1@dont-email.me> <mmeu66$h59$1@dont-email.me> <c0961337-cb93-4198-a1e3-ffd891a1ff8b@googlegroups.com> <a8acf1d7-6d1b-4692-a085-682d0797d441@googlegroups.com> <a7a9014e-5855-4f96-ad3e-639fc4bd77c5@googlegroups.com> |
On 05/07/2015 14:47, Rick C. Hodgin wrote: > Bart, > > Microsoft provides a .bat file which sets up all > environment variables for you so you can run > from anywhere. It's installed into the Start > menu's "Visual Studio" menu by default. You mean VCVARS32.BAT and VCVARS64.BAT? (And which probably set the same INCLUDE and LIBPATH variables used by half of all other compilers too!) But let's try it, navigating to the BIN directory (which takes about a minute): ...>cl hello.c "hello.c(1) : fatal error C1034: stdio.h: no include path set" I now run VCVARS.BAT and try again: ...>cl hello.c "hello.c(1) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory" Looking at the INCLUDE variable, it's set to: C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE;C:\SDK\include; although the actual include files of this installation are in: C:\Users\Desktop 10\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\include\ In fact, the "C:\Program Files (x86)\Microsoft Visual Studio 9.0\" path doesn't exist. If I set the environment variables manually, then I get: "hello.c(1) : fatal error C1083: Cannot open include file: 'stdio.h': Invalid argument" (As a general point, if an application can't find a particular file, it would be really helpful if it told you where it tried to find it! If it did find it and there was a problem with it, and might possibly be the case here, there it ought to show the full path of the file.) Anyway, MSVC only works for me if you open their special 'goldilocks' console where everything is just right. -- bartc
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar
Re: OT - gcc for Windows not being recognized by Windows 7 fir <profesor.fir@gmail.com> - 2015-07-05 01:45 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 fir <profesor.fir@gmail.com> - 2015-07-05 06:35 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-07-05 06:47 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-07-05 15:34 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Robert Wessel <robertwessel2@yahoo.com> - 2015-07-05 11:20 -0500
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-07-05 17:50 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-07-05 10:29 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 Robert Wessel <robertwessel2@yahoo.com> - 2015-07-05 12:49 -0500
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-07-05 19:19 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Martin Shobe <martin.shobe@yahoo.com> - 2015-07-05 14:22 -0500
Re: OT - gcc for Windows not being recognized by Windows 7 Geoff <geoff@invalid.invalid> - 2015-07-05 12:49 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-07-05 21:05 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Robert Wessel <robertwessel2@yahoo.com> - 2015-07-05 15:38 -0500
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-07-05 22:38 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 fir <profesor.fir@gmail.com> - 2015-07-05 17:18 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 Keith Thompson <kst-u@mib.org> - 2015-07-05 18:23 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 Richard Heathfield <rjh@cpax.org.uk> - 2015-07-06 02:43 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-07-06 10:27 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-07-06 20:13 +0000
Re: OT - gcc for Windows not being recognized by Windows 7 "Charles Richmond" <numerist@aquaporin4.com> - 2015-07-07 15:18 -0500
Re: OT - gcc for Windows not being recognized by Windows 7 "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-07-07 13:31 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-07-07 21:16 +0000
csiph-web