Page 1 of 1

Meaning of Error Code 2118292091

Posted: Mon Nov 05, 2012 7:17 am
by julianloui
When I try to compile the example below, I get an ambiguous error message. Can you help me decode it? Thank you very much. Julianloui
..........................................................
Current working directory: c:\test
Running program: le_exec.exe ./test
Program exited with return code: 2118292091
..........................................................
#include <iostream>
using namespace std;

main()
{
cout << "This is a null program.";
cout " \n";
}

Re: Meaning of Error Code 2118292091

Posted: Mon Nov 05, 2012 4:53 pm
by eranif
Your executable terminated with an undefined error code.
Usually 'main' function should return an integer, does the below code compiles?

Please use this post to provide more information

http://forums.codelite.org/viewtopic.php?f=3&t=804

Eran

Re: Meaning of Error Code 2118292091

Posted: Tue Nov 06, 2012 6:33 am
by julianloui
Eran,

I don't see any code in your reply. Do you want me to look for it elsewhere?

Julian

Re: Meaning of Error Code 2118292091

Posted: Tue Nov 06, 2012 9:38 am
by eranif
julianloui wrote:I don't see any code in your reply. Do you want me to look for it elsewhere?
I meant the code snippet you pasted

In addition:
http://forums.codelite.org/viewtopic.php?f=3&t=804

Eran

Re: Meaning of Error Code 2118292091

Posted: Tue Nov 06, 2012 10:11 pm
by julianloui
I can compile my code snippet under GNU C++ and run the output without any trouble, but not under Codelite as I've indicated in my original report. I fail to decipher the meaning of the error code. What does it mean? Where does it come from? Thanks.

Julian

Re: Meaning of Error Code 2118292091

Posted: Tue Nov 06, 2012 10:55 pm
by Jarod42
return code is different than error code.

your code doesn't specify any return code.
try

Code: Select all

int main()
{
    cout << "This is a null program." << endl;
    return 0;
}
Also, check the 'pause when execution ends' (in project settings) to be able to see the console output.

Re: Meaning of Error Code 2118292091

Posted: Wed Nov 07, 2012 7:00 am
by julianloui
How can I post a screenshot at this website? I've just done a Codelite compilation with your code snippet and I am getting the same error message with the same error code. I wish I could inculde a snapshot of the screen for you to look at. Thanks again.

Julian