Author Topic: CodeBlocksIde.exe return 1  (Read 4561 times)

Offline baraque

  • Single posting newcomer
  • *
  • Posts: 2
CodeBlocksIde.exe return 1
« 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: CodeBlocksIde.exe return 1
« Reply #1 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 ?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CodeBlocksIde.exe return 1
« Reply #2 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: CodeBlocksIde.exe return 1
« Reply #3 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.

Offline baraque

  • Single posting newcomer
  • *
  • Posts: 2
Re: CodeBlocksIde.exe return 1
« Reply #4 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!