News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Not able to build project from codeblocks command line

Started by dorch, February 03, 2017, 02:22:08 PM

Previous topic - Next topic

dorch

Hi all,

I'm trying to build a gfortran project from a batch file by asking C::B 16.01 to build it from the command line. I followed the documentation and call codeblocks with that command line :

codeblocks.exe /na /nd -ns --batch-build-notify --no-batch-window-close --rebuild --target='Release'  "MyProject.cbp"

When I run it, I always got the same message from the log console: "Nothing to be done (all items are up-to-date)"
Whatever operation I tried (build, rebuild, clean) or whatever file I tried (project, workspace), I always got the same message.

I also tried to run the command line without the --rebuild argument and C::B opens correctly the projet and I'm able to build it manually in the IDE.

Why the build process seems to be ignored when called from the command line ? I search on the forum and Google but I didn't find anyone having the same issue...

Thank you in advance, if any of you have an idea on how coping with that.

silver

You should be replace the target option with double quote not single quote.
Like this : --taget="Release" or --target="Debug"

Please check the below topic also.

http://forums.next.codeblocks.org/index.php?topic=14989.0