www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/03/03:39:36

From: G DOT DegliEsposti AT ads DOT it
To: "aalfonso" <aalfonso AT ica DOT net>
cc: djgpp AT delorie DOT com
Message-ID: <C12565DB.002ED071.00@vega.ads.it>
Date: Fri, 3 Apr 1998 10:36:45 +0200
Subject: Re: Permission denied (EACCES)
Mime-Version: 1.0




>I tried to write and compile my first C++ program.  The usual "Hello
World"
>exe. The only difference between the C++ version and the C version I
>successfully compiled that I can see is the #include <iostream.h> and
cout.
>The compiler says
>The error was: Permission denied (EACCES)
>Djgpp seems to create an exe but when I try to run it Windows tells me
that
>it is not a valid Win32 application. I tried to run it in DOS and received
>"There is not enough memory to run the program" . Though my C programs run
>just fine both out of Windows and Dos. Could anyone tell me how to correct
>this?

These are symptoms that your program was not compiled correctly. Do not
trust
the .exe you have: when there are compiling errors gcc doesn't always
remove the corrupted .exe it started building.

Post the exact commands you execute to compile your program and the exact
error messages gcc outputs.

ciao
  Giacomo




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019