Skip to main content
gamedev.net
🔒 Locked

problem with global header

Started by Nullio Mar 16, 2003 at 1:28 PM 1 replies 250+ views
Original Post
Nullio
Nullio
I''m working on arranging my Tile Engine into nice neat separate files when I ran into this problem: I have a "Globals.hpp/cpp" where I keep all my global stuff (go figure) but I also have some structs defined in the globals.hpp as well this is were the problem is:
struct TILE_INFO {
         //a bunch of stuff goes here
} TILE, *TILEPTR;

struct WORLD_INFO {
         //stuff goes here
         TILE tileList;
} WORLD, *WORLDPTR;
 
the error is that the WORLD_INFO struct doesn''t see the TILE_STRUCT. how do I fix this??
Pipo DeClown
Pipo DeClown
struct TILE_INFO {
//a bunch of stuff goes here
} TILE, *TILEPTR; //<-- these two are like variables, not names

.lick

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.