[prev in list] [next in list] [prev in thread] [next in thread] 

List:       redhat-devel
Subject:    C compiled executalbe problem
From:       Buoyant buoyant () 263 ! net
Date:       2000-11-28 0:25:29
[Download RAW message or body]

This is because the current directory(.) is not contained in the environment variable--PATH. Append it in the profile file or try to run ./program <enter> .

            buoyant

----- Original Message ----- 
From: "Del Campo, Damian" <Damian.DelCampo@team.telstra.com>
To: "'RedHat, DevList'" <redhat-devel-list@redhat.com>
Sent: Tuesday, November 28, 2000 7:17 AM
Subject: C compiled executalbe problem


> Have just started programming some C on RH6.1
> 
> Compiling using "gcc - o program program.c".
> 
> Problem is that from the directory this sits in, I can't actually operate
> the program
> ie program <Enter> doesnt' work whereas going up one directory level and
> calling "directory/program" does.
> Likewise, if I stay in the directory with the program and call it via
> "../directory/program" it works also.
> 
> Why is this, that I can't call it directly from where it sits?
> 
> It isn't a directory permissions/properties thing because I copied the
> program up a directory level and now couldn't call it directly from that
> directory and again had to call from "its" upper directory.
> 
> Thanks in advance,
> Damian
> 
> 
> 
> _______________________________________________
> Redhat-devel-list mailing list
> Redhat-devel-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/redhat-devel-list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic