Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: FrankTheFox on October 12, 2011, 02:37:18 pm

Title: strange behaviour with object files folder
Post by: FrankTheFox on October 12, 2011, 02:37:18 pm
Hi,

first i build my project located in /home/me/devel/myProgramm. All object files located there a well. Then i use some files from /usr/include/tools/ (h-files and cpp files).
When creating a new file (or class) i use /home/me/devel/myProgramm/myEngine.cpp. When compiling the project i see that /home/me/devel/myProgramm/obj/Debug/home/me/devel/ is used as a location for the object file?

Greetz
Title: Re: strange behaviour with object files folder
Post by: oBFusCATed on October 12, 2011, 02:52:02 pm
This is the correct behaviour.

What have you expected to happen?
C::B to generate object files  in /usr (this is system dir most of the time is read-only for simple users)?
Title: Re: strange behaviour with object files folder
Post by: FrankTheFox on October 12, 2011, 03:14:33 pm
This is the correct behaviour.

What have you expected to happen?
C::B to generate object files  in /usr (this is system dir most of the time is read-only for simple users)?

No /usr is not the location where to put my files. Before putting header from /usr/include  into my project, all object files are created in "myProgramm/obj/Debug".
After putting the header (and sources) the "Debug" path is extended by home/me/devel/myProgramm. So most of the object files resides in myProgram/obj/Debug and my newly created ones in /home/me/devel/myProgramm/obj/Debug/home/me/devel/myProgramm.

Greetz
Title: Re: strange behaviour with object files folder
Post by: oBFusCATed on October 12, 2011, 03:36:05 pm
Hm, sorry for the confusion...

What is the value in Projects->Properties->Build targets-> Objects output dir?
And what version of C::B are you using? OS?
Title: Re: strange behaviour with object files folder
Post by: FrankTheFox on October 12, 2011, 04:17:19 pm
Hi,

C::B Version :          Build: Jul 19 2009, 21:04:26 - wx2.8.8( Linux, unicode )
OS:                       OpenSuSE 11.1
Objects output dir:   obj/Debug/

Greetz
Title: Re: strange behaviour with object files folder
Post by: oBFusCATed on October 12, 2011, 04:33:04 pm
Hm, it is pretty old. Can you try 10.05 at least or a nightly build (I'm not sure if there are binaries for suse, thought, so you'll have to build it yourself).
Title: Re: strange behaviour with object files folder
Post by: FrankTheFox on October 12, 2011, 04:56:41 pm
Ok,

thanks!