Code::Blocks Forums
User forums => Using Code::Blocks => Topic started 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
-
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)?
-
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
-
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?
-
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
-
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).
-
Ok,
thanks!