#ifndef VERTEX_H
#define VERTEX_H
typedef struct vertex_s {
float x,y,z;
DWORD color;
float tu,tv;
} vertex;
vertex *vertices;
WORD *indices;
#endif
And one file has a #include "vertex.h", everything compiles fine. But if i have another file in my project that also includes vertex.h I get the following errors:
fractal.cpp
d:\4080\fract_ter\vertex.h(7) : error C2146: syntax error : missing '';'' before identifier ''color''
d:\4080\fract_ter\vertex.h(7) : error C2501: ''DWORD'' : missing storage-class or type specifiers
d:\4080\fract_ter\vertex.h(7) : error C2501: ''color'' : missing storage-class or type specifiers
d:\4080\fract_ter\vertex.h(13) : error C2143: syntax error : missing '';'' before ''*''
d:\4080\fract_ter\vertex.h(13) : error C2501: ''WORD'' : missing storage-class or type specifiers
d:\4080\fract_ter\vertex.h(13) : error C2501: ''indices'' : missing storage-class or type specifiers
anyone have any suggestions? Thanks in advance.