News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Project base directory

Started by haxmando, August 19, 2009, 07:49:36 PM

Previous topic - Next topic

haxmando

I wonder how to set the project base directory so i don't always have to write 'C://etc.etc.'

If my project is compiled in 'C:/projects/p1'  and when i try to load a certain file (a font for example) from p1/fonts directory, i will have to use a path 'C:/projects/p1/fonts/arial.ttf'. I'd like to have it so, that i only have to write 'fonts/arial.ttf' to load it correctly. So can i change the base directory somewhere?

stahta01

The project files are all relative to the Code::Blocks project file (,cbp) location.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]