global new type???

Hi, i am new in c++, I have a console project in Visual c++ 2010, I need
a structure like:

typedef struct
{
unsigned char header;
float fdata[6];

}PACK;

I put this in a header file definition.h, then I have several classes in my project that include definition.h. when I use two or more of these classes in my main I get the error
error C2371: 'PACK' : redefinition; different basic types,
I understand the reason of the error, but my question is, where can I put this structure or declare it in order for it to be like a global new type, that is to be able to used in anywhere in my project. That may be a silly question but I am a newbie.
This is caused by you including the same file over and over. You need to put guards in to prevent that.

See this article... specifically section 3:

http://www.cplusplus.com/forum/articles/10627/#msg49679
Thank you Disch the info was very useful
Topic archived. No new replies allowed.