The new Release 20.03 is out! You can download binaries for Windows and many major Linux distros here .
codeblocks.exe --build --target="Release" c:\some\where\a\project.cbp
codeblocks.exe --personality=MyBuild --rebuild c:\some\where\a\project.cbp > build.log
Hello,I am a newcomer to CodeBlocks, and I have a similar problem as Mr tobiaslohe. I would like to set the workspace in the command line when launching codeblocks in order to compile my workspace from an MS DOS batch, or from a Visual Basic Script, or from any kind of shell script.I could not find the relevant information either in the help site http://wiki.codeblocks.org/index.php?title=Command_line_arguments My nightly build is svn 3677 (March 8th 2007, 23:18:02 -wx2.6.3). I am using Windows XP, and MinGW on top of MSYS.Could anyone tell me if this is supported (If not I can report a bug on the Berlios site)My command line is :codeblocks --no-splash-screen --target="Release" --personality="Lite" --rebuild myworkspace.cbp > compile.logThe content of compile log is after this line execution :Nothing to be done.Nothing to be done.Nothing to be done.Also, I noticed that when the filename/filepath & name myworkspace.cbp is incorrect, I get a notification "The project does not exists" twice, and then codeblocks crashes.By the way it would be nice if the the indication of codeblock build was possible to cut and paste from the Menu help->about, that would be easier than copying it to this message by hand for lasy ones like me Very best regards, Vincent.
My command line is :codeblocks --no-splash-screen --target="Release" --personality="Lite" --rebuild myworkspace.cbp > compile.logAlso, I noticed that when the filename/filepath & name myworkspace.cbp is incorrect, I get a notification "The project does not exists" twice, and then codeblocks crashes.
clean = dc.GetCleanSingleFileCommand(Manager::Get()->GetEditorManager()->GetActiveEditor()->GetFilename());
1) Is your correction only for preventing CB from crashing when the project/workspace filename is incorrect, [...]
2) Have you checked that my update on http://wiki.codeblocks.org/index.php?title=Command_line_arguments
3) Are you to anounce on this forum when the fix is done, [...]