Re: need help with cc



Ron Johnson wrote:
On 08/22/08 23:04, Daniel Watkins wrote:
On Fri, 22 Aug 2008 23:52:27 -0400
"raman narasimhan" <ramsn88@xxxxxxxxx> wrote:
i'm new to debian.. after compilation whenever i type ./a.out, bash
says permission denied or says segmentation fault...
how do i resolve the problem ?
If you get a 'permission denied', ensure that the execute bit is set
('chmod +x <file>').

But gcc sets the file permissions for you.

If you get a segmentation fault, that suggests that the code being
compiled is faulty.

Blame the compiler???? That's a CompSci 101 mistake.


When I just started with IBM I used to think that the PSW quit PSW-ing when I made mistakes.

Hugo


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: need help with cc
    ... says permission denied or says segmentation fault... ... how do i resolve the problem? ... -- Thomas Jefferson ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: need help with cc
    ... says permission denied or says segmentation fault... ... how do i resolve the problem? ... -- Thomas Jefferson ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: need help with cc
    ... how do i resolve the problem? ... If you get a 'permission denied', ensure that the execute bit is set ... If you get a segmentation fault, that suggests that the code being ... Daniel Watkins ...
    (Debian-User)
  • Re: Re: samba domain controller
    ... failing to resolve the name pdc.bollocks.com, even though it was able to ... I can see the shares and navigate them. ... I have a root user with a password. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: LD_ASSUME_KERNEL support for feisty
    ... Yes, I have the permissions. ... can you execute ?>ldd executable_file and send it to us? ... Modify settings or unsubscribe at: ...
    (Ubuntu)