Jump to content
  • Advertisement
Sign in to follow this  
Ainokea

multiple folders

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

If you intended to correct an error in the post then please contact us.

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 this post


Link to post
Share on other sites
Advertisement
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 this post


Link to post
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 this post


Link to post
Share on other sites
Quote:
Original post by graveyard filla
you dont have to put the whole path

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

Share this post


Link to post
Share on other sites
Quote:
Original post by Ainokea
can 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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!