Sign in to follow this  

#include madness

Recommended Posts

Hello there! I´m coding a game and have already lots of files with a huge number of linking between them.The problem is,it is reaching a point in which the compiler keeps saying I am redefining stuff when including one file to the other.I have one huge file for typedefs,another huge file for global variables,and these are the ones that give me the biggest problems,because,of course,if I have a class named X which depends on class Y and both need to access the ClassesTypedefs file,then there will be multiple definition. Well...should I just think over my way of organizing these things or is there a way of creating a 'global file' in which all #include´s are included? Thanks a bunch, Carol

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this