a.out won't execute

Paul Howarth paul at city-fan.org
Wed Jun 28 22:18:45 UTC 2006


On Wed, 2006-06-28 at 15:06 -0700, Todd Simi wrote:
> Hi,
> 
> I asked about the c++ IDE's available a few days ago.  Thanks for all the info.
> 
> I have a problem now.  I've written a small c++ program for my class.  I can
> compile it with g++ on both my FC5 system and one of my Redhat systems (7.2).
> 
> The problem is, although they both generate an a.out file, I can only execute
> it on the Redhat 7.2 system.  On FC5 I get a permission denied message.
> 
> The file permissions are -rwxr-xr-x on both systems.
> 
> Any ideas?

Do you get the same result if on FC5 you compile it using the following
compiler options:

-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
-mtune=generic -fasynchronous-unwind-tables

These are the options used for building virtually all of the RPM
packages in FC5.

Paul.




More information about the fedora-list mailing list