Author Topic: Not able to build project from codeblocks command line  (Read 436 times)

Offline dorch

  • Single posting newcomer
  • *
  • Posts: 1
Not able to build project from codeblocks command line
« on: February 03, 2017, 02:22:08 pm »
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.

Offline silver

  • Single posting newcomer
  • *
  • Posts: 1
Re: Not able to build project from codeblocks command line
« Reply #1 on: November 21, 2017, 06:38:22 am »
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.codeblocks.org/index.php?topic=14989.0