Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Elena on September 15, 2021, 09:04:56 pm
-
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.
-
Are you really using two backslashes after E:? This can confuse wxFileName, see for example this pull request (https://github.com/wxWidgets/wxWidgets/pull/2519) for wxWidgets.