Author Topic: Swap Header/Source where they aren't in the same folder  (Read 3254 times)

tobias

  • Guest
Swap Header/Source where they aren't in the same folder
« on: January 27, 2007, 06:49:24 pm »
Hi,

I want the following file structure in my project:
  sources in ./src
  headers in ./$projectname$

But it seems that if I do 'Swap Header/Source' it doesn't find the appropriate file. Is there a way to set a source folder and a headers folder where c::b looks for the files.

Thanks
Tobias

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: Swap Header/Source where they aren't in the same folder
« Reply #1 on: January 27, 2007, 07:05:12 pm »
If you add your folder to the include-directories for this project that Code::Blocks should find your header files when you use 'Swap Header/Source'.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.