|
From: Per W. <pw...@ia...> - 2004-03-26 15:43:32
|
Don't you have more error output? One of the outptu tabs should display
what file it isn't able to run.
Anyway, your main() function should return int - don't use old style with
implicit int for missing data types - and you should return a value too.
int main(void) {
printf("...");
return 0;
}
/Per W
On Fri, 26 Mar 2004, Jodie and Harold Wilson wrote:
> Hi
>
> I am just starting to learn C and when I compile the following simple
> program I get the following error message.
>
> #include "stdio.h"
> main ( )
> {
> printf("This is a short C program.");
> }
>
>
> Compile Error:
> Line 2 File C:\Work\2 Message unable to run program file
>
>
> Could someone please tell what I'm doing wrong.
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|