• 12
• 11
• 9
• 10
• 13

# multiple folders

This topic is 4936 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Is it possible to have source files in folder GFX include files from folder CORE if both core and GFX are in the same folder? I hope this will work...

##### Share on other sites
yeah you can do stuff like the following. if your directory structure looks like this:

GameFolder   |   |-> GFX   |    |   |    |-> gfx.h   |   |   |-> CORE   |    |   |    |-> core.cpp

then core.cpp could start like this
//this includes the gfx header#include "../GFX/gfx.h"

-me

##### Share on other sites
can I just put: #include ".../GFX/gfx.h"

Or do I have to do this: #include "whole path name/GFX/gfx.h" ?

anyways thanks, rating++.

##### Share on other sites
you dont have to put the whole path

##### Share on other sites
Quote:
 Original post by graveyard fillayou dont have to put the whole path

cool thanks. I would rate you up but I already did.

##### Share on other sites
Quote:
 Original post by Ainokeacan I just put: #include ".../GFX/gfx.h"

i put exactly what you need to put; sorry if there was confusion. the '..' part means literaly '..' not the whole path name. incedentally, it's 2 periods not 3 as you have in your previous post.

-me