Author Topic: Project base directory  (Read 2378 times)

Offline haxmando

  • Single posting newcomer
  • *
  • Posts: 2
Project base directory
« on: August 19, 2009, 07:49:36 pm »
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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Project base directory
« Reply #1 on: August 19, 2009, 07:55:20 pm »
The project files are all relative to the Code::Blocks project file (,cbp) location.

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