Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #64717

Re: OT - gcc for Windows not being recognized by Windows 7

From Melzzzzz <mel@zzzzz.com>
Newsgroups comp.lang.c
Subject Re: OT - gcc for Windows not being recognized by Windows 7
Date 2015-07-05 21:57 +0200
Organization albasani.net
Message-ID <20150705215734.297f2fac@maxa-pc> (permalink)
References (10 earlier) <mn9rse$903$1@dont-email.me> <cvrkqbFeu8iU1@mid.individual.net> <mnb1hp$ge9$1@dont-email.me> <20150705210821.6bd31567@maxa-pc> <mnc0b8$1o6$1@dont-email.me>

Show all headers | View raw


On Sun, 05 Jul 2015 20:26:52 +0100
Bartc <bc@freeuk.com> wrote:

> On 05/07/2015 20:08, Melzzzzz wrote:
> >
> 
> > Windows command line sucks, badly. On Unix libs and include files
> > are system global so that every compiler knows where to look for,
> > while on Windows no such thing.
> 
> I find Linux utterly impossible.

You mean Unix?

> 
> And why should there actually be any difficulty in knowing where to 
> look? In the same place as the executable is a good start! A short 
> relative distance from the executable is also acceptable
> (eg. ..\include when "." is where the executable has been started
> from).

What about system headers?

> 
> (Since, after all, programs can be packaged so that all the support 
> files are added to the executable. So it's a natural place to look
> when the files happen to be discrete.)
> 
> But I remember from previous investigations that in Linux, it is 
> apparently impossible to find out where the executable was started
> from, so there's no way to access any support files that way if
> they're in the same place, unless the location is hard-coded. (And
> then you have problems with multiple versions because they can't all
> be in the same place.)

Wrong. Examine argv[0], if it does have absolute path, stop. if it does
have relative path, start searching from current dir up to root, stop.
If it does not have path at all, start searching env var PATH, from
left to right, stop when executable is found. That's all.

> 
> This is like not being able to find the kitchen from the living-room
> of my house. Linux' solution is to have everyone's kitchens all in
> the same part of town!
> 

Back to comp.lang.c | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

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 gazelle@shell.xmission.com (Kenny McCormack) - 2015-07-05 12:20 +0000
          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

csiph-web