Code::Blocks Forums

User forums => Help => Topic started by: baraque on August 18, 2012, 12:27:00 am

Title: CodeBlocksIde.exe return 1
Post by: 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
Title: Re: CodeBlocksIde.exe return 1
Post by: Jenna on August 18, 2012, 01:07:34 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

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 ?
Title: Re: CodeBlocksIde.exe return 1
Post by: MortenMacFly on August 18, 2012, 07:14:41 am
What is CodeBlocksIde.exe, do you mean codeblocks.exe, or is it any kind of (modified) custom build ?
I had a CodeBlocksWraper which called CodeBlocksIde.exe to build project. In the wrapper, CodeBlocksIde.exe is called [...]
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.
Title: Re: CodeBlocksIde.exe return 1
Post by: Jenna on August 18, 2012, 10:21:07 am
What is CodeBlocksIde.exe, do you mean codeblocks.exe, or is it any kind of (modified) custom build ?
I had a CodeBlocksWraper which called CodeBlocksIde.exe to build project. In the wrapper, CodeBlocksIde.exe is called [...]
For me (with my knowledge of english) it says, that the wrapper calls CodeBlocksIde.exe, otherwise it must be:
I had a CodeBlocksWraper which is called CodeBlocksIde.exe to build project. In the wrapper, CodeBlocksIde.exe codeblocks.exe is called [...]
I have asked, to make clear what the OP really means.
Title: Re: CodeBlocksIde.exe return 1
Post by: baraque on August 20, 2012, 04:36:42 pm
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!