|
Directory setup Code::Blocks |
Albin Engström
Member #8,110
December 2006
|
Does anyone know how to set the include and source directory for a project in code::blocks? Currently i have to type "#include "..\include\xxx.h"" for my speedhack entry. How do make code::blocks understand "#include "xxx.h""? Thanks. |
Arthur Kalliokoski
Second in Command
February 2005
|
Most compilers accept the option "-I <include path>" to include additional directories, perhaps code::blocks lets you do that? In compiler settings/options or something. They all watch too much MSNBC... they get ideas. |
rxaaaa
Member #9,244
November 2007
|
It's: Settings -> Compiler & Debugger Settings -> Search Directories. At Search Directories under Compiler you put your header files and under linker you put your libs. |
Albin Engström
Member #8,110
December 2006
|
I was thinking more like for this project only. I mean instead of the project looking in the same mapp as the project file it should look for heather files in the map "include" and source files in "source". |
SiegeLord
Member #7,827
October 2006
|
rxaaaa said: Settings -> Compiler & Debugger Settings -> Search Directories. Make that Project -> Build Options -> Search Directories to make it apply to the current project only. "For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18 |
Albin Engström
Member #8,110
December 2006
|
Thanks! |
|