User forums > Using Code::Blocks

Wrong number of arguments passed to cb_console_runner

(1/1)

illi:
Hi
I'm making a small program to school and I need redirect file to stdin.
I tried add to Program arguments this:

--- Code: -----wpl 3 < inputs\in.normal

--- End code ---
or something like that. But there is following problem: Program executed by cb_console_runner gets 5 arguments instead of 3 (program name, --wpl, 3).
Do you have please any ideas how to solve it?
Platform is Windows

MortenMacFly:

--- Quote from: illi on October 02, 2009, 04:04:02 pm ---But there is following problem: Program executed by cb_console_runner gets 5 arguments instead of 3 (program name, --wpl, 3).

--- End quote ---
console_runner was not designed to handle such (it also makes no sense). Just start a command prompt at where your executable is and run the command from there. Alternatively you can setup a tool in the tools menu very flexibly that does that for you.

Jenna:
It works for me (on linux).

Can you please copy the output of the build-log (or more exactly the line with the cb_console_runner-command) and post it here.

And please tell us which version of C::B and which OS you use.

illi:

--- Quote from: jens on October 02, 2009, 05:19:51 pm ---It works for me (on linux).

Can you please copy the output of the build-log (or more exactly the line with the cb_console_runner-command) and post it here.

And please tell us which version of C::B and which OS you use.

--- End quote ---
OS is Windows 7.

--- Code: ---Executing: "C:\Program Files\CodeBlocks/cb_console_runner.exe" "C:\Users\illi\Documents\Skola\IZP\Projekt-1\bin\Debug\Projekt 1.exe" --wpl 34 < inputs\in.original (in C:\Users\illi\Documents\Skola\IZP\Projekt-1\.)
--- End code ---

--- Quote from: MortenMacFly on October 02, 2009, 04:53:36 pm ---
--- Quote from: illi on October 02, 2009, 04:04:02 pm ---But there is following problem: Program executed by cb_console_runner gets 5 arguments instead of 3 (program name, --wpl, 3).

--- End quote ---
console_runner was not designed to handle such (it also makes no sense). Just start a command prompt at where your executable is and run the command from there. Alternatively you can setup a tool in the tools menu very flexibly that does that for you.

--- End quote ---
I know, but from command line is hard run debugger.

Navigation

[0] Message Index

Go to full version