[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Can't run programs compiled with GCC



hey -

you aren't giving us enough information to help you...
for example, what -exactly- happens when you run the program? have you
tried
	./<program-name>

to explicitly run the command in the specified directory? if you do

	which <program-name>

does it list the program in your current dir (or wherever you are putting
the binary)? are you sure you are not specifying "-c" on the gcc line,
etc... ? is the program hanging? eg a busy loop of some kind? is your cpu
going absolutely nuts when you run the program? how do you prompt for
input (give code!)? are you prompting from the standard in (default file
descriptor 0)? is it executable? try:

	chmod 755 <program-name>

if it isn't and try again.

"my program doesn't work" is the most difficult problem to solve if there
is no other information...

and, unless you do something quite unusual, you won't need any packages...
except libc, but gcc would complain about that one...

phil.

On Fri, 30 Oct 1998, Max DiOrio wrote:

> Marek Dohojda wrote:
> 
> > What do you mean you can't run them? What error message do you get?
> >
> >
> 
> I mean that when I try to run them...I get no error messages and the program
> does not prompt for input...which is what it was created to do upon being
> run.  I believe that I was able to run programs created with    gcc -o
> filename filename.c     in the past...but I don't remember which packages I
> installed.
> Max DiOrio
> romulus15 ccny com
> 
> 
> -- 
>   PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> 		http://www.redhat.com http://archive.redhat.com
>          To unsubscribe: mail redhat-install-list-request redhat com with 
>                        "unsubscribe" as the Subject.
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]