• Advertisement
Sign in to follow this  

#include madness

This topic is 4365 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

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
Advertisement
Sign in to follow this  

  • Advertisement