User forums > Using Code::Blocks
$object location for file on separate drive
(1/1)
dfatcb:
Hello,
I have a source module (happens to be .asm, but think this applies to all types) that is on a different drive X:. So I add that file to the project and when it builds it ends up creating subfolders for the file under the output target object folder as in X\path\filename.obj . Is there an option to have it output the .obj file to the normal object output folder without creating all the sub-folders?
Thanks.
Freem:
You will need to change destination of objects files.
This option is in project's options -> build targets -> objects output dir
Obviously, C::B will change that for all sources of the defined target.
If you need such behavior for a subset of sources, you will need to define new targets for each subset. Or maybe you can write scripts, but it will probably be harder.
Jenna:
You can try what happens, if you check "Generate extended object names" on the "Project settings"-tab (first tab) of the projects properties.
I'm not on windows at the moment and can not test.
Navigation
[0] Message Index
Go to full version