User forums > Help
CodeBlocksIde.exe return 1
(1/1)
baraque:
hi, all:
I had a CodeBlocksWraper which called CodeBlocksIde.exe to build project. In the wrapper, CodeBlocksIde.exe is called in
vRet = _spawnv( _P_WAIT, vCodeBlocksExe.c_str() , apArgv );
When I run my wrapper in windows command window
>CodeBlocksWrapper MyWork.workspace --target=sim /ns --build
vRet get a return value 1 from CodeBlocksIde.exe.
Do you know what does 1 mean?
Thanks
baraque
Jenna:
--- Quote from: baraque on August 18, 2012, 12:27:00 am ---hi, all:
I had a CodeBlocksWraper which called CodeBlocksIde.exe to build project. In the wrapper, CodeBlocksIde.exe is called in
vRet = _spawnv( _P_WAIT, vCodeBlocksExe.c_str() , apArgv );
When I run my wrapper in windows command window
>CodeBlocksWrapper MyWork.workspace --target=sim /ns --build
vRet get a return value 1 from CodeBlocksIde.exe.
Do you know what does 1 mean?
Thanks
baraque
--- End quote ---
What is CodeBlocksIde.exe, do you mean codeblocks.exe, or is it any kind of (modified) custom build ?
What happen if you run it on the console, probably with additional -v parameter ?
MortenMacFly:
--- Quote from: jens on August 18, 2012, 01:07:34 am ---What is CodeBlocksIde.exe, do you mean codeblocks.exe, or is it any kind of (modified) custom build ?
--- End quote ---
--- Quote from: baraque on August 18, 2012, 12:27:00 am ---I had a CodeBlocksWraper which called CodeBlocksIde.exe to build project. In the wrapper, CodeBlocksIde.exe is called [...]
--- End quote ---
It should be the exit code of the compiler in case of a batch build. But I am not surer because wxWidgets does its own "foo" with the exit code. You should read the docs of wxApp:::OnExit.
Jenna:
--- Quote from: MortenMacFly on August 18, 2012, 07:14:41 am ---
--- Quote from: jens on August 18, 2012, 01:07:34 am ---What is CodeBlocksIde.exe, do you mean codeblocks.exe, or is it any kind of (modified) custom build ?
--- End quote ---
--- Quote from: baraque on August 18, 2012, 12:27:00 am ---I had a CodeBlocksWraper which called CodeBlocksIde.exe to build project. In the wrapper, CodeBlocksIde.exe is called [...]
--- End quote ---
--- End quote ---
For me (with my knowledge of english) it says, that the wrapper calls CodeBlocksIde.exe, otherwise it must be:
--- Quote from: baraque on August 18, 2012, 12:27:00 am ---I had a CodeBlocksWraper which is called CodeBlocksIde.exe to build project. In the wrapper, CodeBlocksIde.exe codeblocks.exe is called [...]
--- End quote ---
I have asked, to make clear what the OP really means.
baraque:
Jens:
CodeBlocksIde.exe is Custom build of codeblocks 10.05 release.
I don't know how to run script in script console. I googled, but didn't see any doc about this. Could you please refer some to me?
As MortenMacFly said, this return value 1 is return code of post-build script. It is shown in build log of codeblocks, but I didn't read it carefully.
the last 2 line of build log
----------------------------------------------------------------------
Process terminated with status 1 (0 minutes, 45 seconds)
0 errors, 18 warnings
----------------------------------------------------------------------
Thank you guys for your sincere help!
Navigation
[0] Message Index
Go to full version