User forums > Using Code::Blocks

Compiling only - is there a bug or it is me ?


Hi, I am trying to set up a project for compiling only without linking (with GCC, winLibs). I am using the latest Nighlty Build of CB. After some trials and errors I *think* I found that I must specify Type = Commands Only in project properties, and in fact it issues g++ with the -c option which sould indeed mean compile only without linking. I would therefore expect all my .o files created in the usual objs dir inside my project dir.
Not instead. If my cb  project is say E://MyProjects/NewProject/NewProject.cbp the .o files are placed in E:// directly !!!
Is it a bug which I should report or I did something wrong ?
If you can reply soon I would be grateful. Thx.

It sounds like you did something very wrong or you are not using an Code::Blocks project.

If using an Code::Blocks project, all you need to do is:
Right click on file, select option, un-check "link file".

Tim S.

Miguel Gimenez:
Are you really using two backslashes after E:? This can confuse wxFileName, see for example this pull request for wxWidgets.


[0] Message Index

Go to full version