Re: Return Code -1



naymyo89@xxxxxxxxx wrote:

I searched google and I found a similar post to my question, but
it wasn't answered, so I suppose I could try my luck.

I'm just starting C, and I downloaded and installed lccwin
smoothly. Now I write:

#include <stdio.h>
int main() {
printf("hello world\n");
return 0;
}

which isn't overly complex at all. But when I compile and run it,
I get:

"C:\Documents and Settings\..............." etc
Return code -1
Execution time 0.011 seconds
Press any key to continue....

Why is this happening?

If your description is accurate, you have found a bug in the lcc
system. The only (mild) criticism of your code is the absence of
'void' as the main parameter specification.

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>


--
Posted via a free Usenet account from http://www.teranews.com

.



Relevant Pages

  • Return Code -1
    ... I searched google and I found a similar post to my question, ... so I suppose I could try my luck. ... But when I compile and run it, ... Execution time 0.011 seconds ...
    (comp.compilers.lcc)
  • Re: compiling
    ... Good luck! ... then see if you can get the source to compile. ... > referred to download sites, but when I download the indicated ... > applications or files, I find that there are now other files that are ...
    (alt.linux)
  • Re: "See also" greyed out
    ... Reinstallation ... I've searched Google and MSDN but no luck. ...
    (microsoft.public.vb.general.discussion)
  • RE: Newbie Right of Passage -- Kernel Compilation Problems :-)
    ... > and the compile failed again, ... > can't just comment that line out of my kernel config. ... My luck, ... > To unsubscribe, send any mail to ...
    (freebsd-questions)
  • Suggestion please - Binary newsgroup posting software.
    ... I have searched and checked the major repositories for this but I have not had any luck. ... I want a program to post multipart, rar'd and yenc encoded files to the alt.binary.* groups. ... There is supposed to be a front end for Gnome and KDE but I could not get them to compile last night. ...
    (Fedora)