Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Tim Prince <tprince@computer.org> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: OT - gcc for Windows not being recognized by Windows 7 |
| Date | 2015-06-23 18:54 -0400 |
| Message-ID | <cuu6coF6emqU1@mid.individual.net> (permalink) |
| References | <mmbr1n$m9s$1@dont-email.me> <mmbrh1$nia$2@dont-email.me> <lnfv5i9ih1.fsf@nuthaus.mib.org> <mmcnbm$d4c$1@dont-email.me> |
On 6/23/2015 6:43 PM, David Brown wrote: > On 24/06/15 00:18, Keith Thompson wrote: >> Bartc <bc@freeuk.com> writes: >>> On 23/06/2015 15:40, bilsch wrote: >>>> I installed MinGW - gcc for Windows (also compilers for several other >>>> languages included). At first it couldn't find gcc because I had to >>>> add >>>> it to the PATH variable. I successfully added the path and have >>>> checked >>>> it carefully for correctness. I type: >>>> gcc hello.c -o hello.exe and it says: >>>> 'gcc' is not recognized as an internal or external command, operable >>>> command or batch file. >>>> >>>> So I copied a copy of gcc.exe to the directory where hello.c >>>> resides. I >>>> typed: gcc hello.c -o hello.exe. It says: >>>> gcc: error: CreateProcess: no such file or directory. But I am in the >>>> directory where hello.c resides. >> >> Don't copy gcc.exe, just leave it where it was installed. >> >>>> So I failed twice when I can't see anything wrong. Bill S. >>> >>> Forget the PATH variable. I could never get that to work (and I have two >>> gcc versions in use anyway and they get confused with each other's >>> presence). >> >> The PATH (in Windows, %PATH%) variable is the usual way to specify where >> executables live -- and it might be necessary for other things in the >> same directory to be accessible via %PATH%. bilsch must have set %PATH% >> incorrectly. He should figure out how that went wrong rather than just >> give up and use the full path name. >> >>> I just use the full path, eg: >>> >>> C:\mingw\bin\gcc .... >>> >>> You can't just copy gcc.exe because I think it invokes other executables >>> too. >> >> Yes, that should work too. >> >> On Unix-like systems, if I have multiple versions of a command in >> different locations, I might write a wrapper script that sets $PATH >> and then invokes a specified command. For example, say I have gcc >> versions 3 and 4. Then >> >> gcc3 gcc ... >> >> would prepend the directory containing gcc version 3 to $PATH, >> and then invoke "gcc ..." with that environment; likewise for >> "gcc4 gcc ...". >> >> But if you only have one gcc installation that you care about, just set >> PATH so you can execute it as "gcc". >> >> I suggest asking about this in a Windows forum, since it's not really a >> C question. You just need to arrange to update %PATH% permanently, so >> the setting doesn't vanish when you logout or close a command window. >> > > A better choice (IMHO, of course) is to specify the C compiler > explicitly, path and all, in your Makefile. The path should typically > contain the compiler version, such as: > > CC=/usr/local/gcc4.9/bin/gcc4.9-gcc > > Then it is perfectly clear what version of the compiler you are using > (and what compiler, if you have several installed). > > The Makefile also gives you a good place to put your flags and other > compilation details. > There's usually a requirement to specify a PATH for .dll and/or LD_LIBRARY_PATH, according to which gcc version you use. cygwin automatically sets up PATH and LD_LIBRARY_PATH for its favored version of gcc, but not for others (mingw32/64) which are available on the setup.exe menu. Compile flags for sure are complicated enough to justify Makefile,
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
OT - gcc for Windows not being recognized by Windows 7 bilsch <bilsch01@gmail.com> - 2015-06-23 07:40 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-06-23 15:48 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 bilsch <bilsch01@gmail.com> - 2015-06-23 08:15 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-06-23 17:46 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 gazelle@shell.xmission.com (Kenny McCormack) - 2015-06-23 17:00 +0000
Re: OT - gcc for Windows not being recognized by Windows 7 fir <profesor.fir@gmail.com> - 2015-07-05 01:55 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 Keith Thompson <kst-u@mib.org> - 2015-06-23 15:18 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 David Brown <david.brown@hesbynett.no> - 2015-06-24 00:43 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 Tim Prince <tprince@computer.org> - 2015-06-23 18:54 -0400
Re: OT - gcc for Windows not being recognized by Windows 7 David Brown <david.brown@hesbynett.no> - 2015-06-24 09:56 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-06-24 09:34 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Richard Heathfield <rjh@cpax.org.uk> - 2015-06-24 09:58 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-06-24 11:21 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Richard Heathfield <rjh@cpax.org.uk> - 2015-06-24 11:27 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 David Brown <david.brown@hesbynett.no> - 2015-06-24 13:41 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-06-24 13:14 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 David Brown <david.brown@hesbynett.no> - 2015-06-24 14:24 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-06-24 13:37 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 David Brown <david.brown@hesbynett.no> - 2015-06-24 16:32 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 gazelle@shell.xmission.com (Kenny McCormack) - 2015-06-24 13:33 +0000
Re: OT - gcc for Windows not being recognized by Windows 7 David Brown <david.brown@hesbynett.no> - 2015-06-24 16:34 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 Richard Heathfield <rjh@cpax.org.uk> - 2015-06-24 13:25 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-06-24 19:03 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Richard Heathfield <rjh@cpax.org.uk> - 2015-06-24 19:28 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-06-24 19:52 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Richard Heathfield <rjh@cpax.org.uk> - 2015-06-24 19:57 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-06-24 21:36 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Richard Heathfield <rjh@cpax.org.uk> - 2015-06-24 22:06 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 jacobnavia <jacob@jacob.remcomp.fr> - 2015-06-25 08:05 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 David Brown <david.brown@hesbynett.no> - 2015-06-25 10:11 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 Robert Wessel <robertwessel2@yahoo.com> - 2015-06-25 03:25 -0500
Re: OT - gcc for Windows not being recognized by Windows 7 David Brown <david.brown@hesbynett.no> - 2015-06-25 12:49 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-06-25 13:21 +0000
Re: OT - gcc for Windows not being recognized by Windows 7 James Kuyper <jameskuyper@verizon.net> - 2015-06-25 12:35 -0400
Re: OT - gcc for Windows not being recognized by Windows 7 Richard Heathfield <rjh@cpax.org.uk> - 2015-06-25 17:42 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 James Kuyper <jameskuyper@verizon.net> - 2015-06-25 13:09 -0400
Re: OT - gcc for Windows not being recognized by Windows 7 Richard Heathfield <rjh@cpax.org.uk> - 2015-06-25 18:31 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 James Kuyper <jameskuyper@verizon.net> - 2015-06-25 13:44 -0400
Re: OT - gcc for Windows not being recognized by Windows 7 jacobnavia <jacob@jacob.remcomp.fr> - 2015-06-26 07:32 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 David Brown <david.brown@hesbynett.no> - 2015-06-26 11:51 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 Richard Heathfield <rjh@cpax.org.uk> - 2015-06-26 11:19 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-06-26 11:54 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Richard Heathfield <rjh@cpax.org.uk> - 2015-06-26 12:46 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-06-26 13:31 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 David Brown <david.brown@hesbynett.no> - 2015-06-26 14:35 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-06-26 14:21 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Richard Heathfield <rjh@cpax.org.uk> - 2015-06-26 14:37 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-06-26 15:19 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 David Kleinecke <dkleinecke@gmail.com> - 2015-06-26 10:10 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-06-26 21:05 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Robert Wessel <robertwessel2@yahoo.com> - 2015-06-26 14:05 -0500
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-06-26 20:42 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Robert Wessel <robertwessel2@yahoo.com> - 2015-06-26 15:07 -0500
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-06-26 21:43 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Robert Wessel <robertwessel2@yahoo.com> - 2015-06-26 16:40 -0500
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-06-26 23:21 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-06-26 22:37 +0000
Re: OT - gcc for Windows not being recognized by Windows 7 Robert Wessel <robertwessel2@yahoo.com> - 2015-06-26 18:25 -0500
Re: OT - gcc for Windows not being recognized by Windows 7 Stephen Sprunk <stephen@sprunk.org> - 2015-06-26 15:14 -0500
Re: OT - gcc for Windows not being recognized by Windows 7 jacobnavia <jacob@jacob.remcomp.fr> - 2015-06-26 15:30 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 Richard Heathfield <rjh@cpax.org.uk> - 2015-06-26 14:38 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Robert Wessel <robertwessel2@yahoo.com> - 2015-06-25 21:27 -0500
Re: OT - gcc for Windows not being recognized by Windows 7 David Brown <david.brown@hesbynett.no> - 2015-06-26 11:54 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 jacobnavia <jacob@jacob.remcomp.fr> - 2015-06-26 07:30 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-06-25 17:48 +0000
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-06-25 14:59 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 David Kleinecke <dkleinecke@gmail.com> - 2015-06-25 08:10 -0700
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
Re: OT - gcc for Windows not being recognized by Windows 7 fir <profesor.fir@gmail.com> - 2015-07-05 02:04 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 fir <profesor.fir@gmail.com> - 2015-07-05 01:33 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 David Brown <david.brown@hesbynett.no> - 2015-06-24 13:35 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 Richard Heathfield <rjh@cpax.org.uk> - 2015-06-24 13:04 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 raltbos@xs4all.nl (Richard Bos) - 2015-07-03 17:36 +0000
Re: OT - gcc for Windows not being recognized by Windows 7 Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-07-03 19:22 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-07-03 23:37 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-07-05 00:58 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Ian Collins <ian-news@hotmail.com> - 2015-07-05 14:58 +1200
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-07-05 11:41 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-07-05 11:50 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 gazelle@shell.xmission.com (Kenny McCormack) - 2015-07-05 12:18 +0000
Re: OT - gcc for Windows not being recognized by Windows 7 David Brown <david.brown@hesbynett.no> - 2015-07-20 16:40 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 gazelle@shell.xmission.com (Kenny McCormack) - 2015-07-05 12:20 +0000
Re: OT - gcc for Windows not being recognized by Windows 7 David Brown <david.brown@hesbynett.no> - 2015-07-20 16:43 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-07-20 16:03 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 David Brown <david.brown@hesbynett.no> - 2015-07-21 12:42 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 Robert Wessel <robertwessel2@yahoo.com> - 2015-07-21 14:36 -0500
Re: OT - gcc for Windows not being recognized by Windows 7 Geoff <geoff@invalid.invalid> - 2015-07-05 11:30 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 Melzzzzz <mel@zzzzz.com> - 2015-07-05 21:08 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-07-05 20:26 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-07-05 15:45 -0400
Re: OT - gcc for Windows not being recognized by Windows 7 Melzzzzz <mel@zzzzz.com> - 2015-07-05 21:57 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 gazelle@shell.xmission.com (Kenny McCormack) - 2015-07-05 21:28 +0000
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-07-05 23:39 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-07-05 23:39 -0400
Re: OT - gcc for Windows not being recognized by Windows 7 Bartc <bc@freeuk.com> - 2015-07-06 12:56 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 gazelle@shell.xmission.com (Kenny McCormack) - 2015-07-06 12:58 +0000
Re: OT - gcc for Windows not being recognized by Windows 7 Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-07-06 09:55 -0400
Re: OT - gcc for Windows not being recognized by Windows 7 Richard Kettlewell <rjk@greenend.org.uk> - 2015-07-06 16:26 +0100
Re: OT - gcc for Windows not being recognized by Windows 7 Phil Carmody <pc+usenet@asdf.org> - 2015-07-08 19:55 +0300
Re: OT - gcc for Windows not being recognized by Windows 7 Ian Collins <ian-news@hotmail.com> - 2015-07-06 10:39 +1200
Re: OT - gcc for Windows not being recognized by Windows 7 luser droog <luser.droog@gmail.com> - 2015-07-05 20:30 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 David Brown <david.brown@hesbynett.no> - 2015-07-20 16:28 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 raltbos@xs4all.nl (Richard Bos) - 2015-06-24 10:04 +0000
Re: OT - gcc for Windows not being recognized by Windows 7 David Brown <david.brown@hesbynett.no> - 2015-06-24 13:42 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 Rosario19 <Ros@invalid.invalid> - 2015-06-24 09:22 +0200
Re: OT - gcc for Windows not being recognized by Windows 7 "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-07-05 11:56 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 Geoff <geoff@invalid.invalid> - 2015-07-05 12:52 -0700
Re: OT - gcc for Windows not being recognized by Windows 7 gazelle@shell.xmission.com (Kenny McCormack) - 2015-07-05 20:40 +0000
Re: OT - gcc for Windows not being recognized by Windows 7 Lőrinczy Zsigmond <zsiga@nospam.for.me> - 2015-07-21 12:47 +0200
csiph-web