Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Directory setup Code::Blocks

Credits go to Arthur Kalliokoski, rxaaaa, and SiegeLord for helping out!
This thread is locked; no one can reply to it. rss feed Print
Directory setup Code::Blocks
Albin Engström
Member #8,110
December 2006
avatar

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
avatar

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
avatar

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
avatar

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
avatar

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
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

Albin Engström
Member #8,110
December 2006
avatar

Thanks! :-*

Go to: