Error: redefinition of typedef xxxx
Hello, I'm trying to compile my .C and I got this errors... The header file (gauge.h) is a SDK of a game (from Micro$oft).
I opened the file and preprocessor tags for preventing twice include has been found.
Any Idea? The header I'm using can be found here: http://pastebin.com/m6b3d71cf just to show you the lines I'm gettting errors
Thanks for reading my thread even you can't help me.
Code:
#ifndef GAUGE_H__
#define GAUGE_H__
...
#endif
Code:
C:\beep\beep\gauge.h|5114|error: redefinition of typedef 'PELEMENT_STATIC_IMAGE'|
C:\beep\beep\gauge.h|5076|error: previous declaration of 'PELEMENT_STATIC_IMAGE' was here|
C:\beep\beep\gauge.h|5114|error: redefinition of typedef 'PPELEMENT_STATIC_IMAGE'|
C:\beep\beep\gauge.h|5076|error: previous declaration of 'PPELEMENT_STATIC_IMAGE' was here|
C:\beep\beep\gauge.h|5167|error: redefinition of typedef 'PELEMENT_NEEDLE'|
C:\beep\beep\gauge.h|5077|error: previous declaration of 'PELEMENT_NEEDLE' was here|
C:\beep\beep\gauge.h|5167|error: redefinition of typedef 'PPELEMENT_NEEDLE'|
C:\beep\beep\gauge.h|5077|error: previous declaration of 'PPELEMENT_NEEDLE' was here|
C:\beep\beep\gauge.h|5270|error: redefinition of typedef 'PELEMENT_STRING'|
C:\beep\beep\gauge.h|5078|error: previous declaration of 'PELEMENT_STRING' was here|
C:\beep\beep\gauge.h|5270|error: redefinition of typedef 'PPELEMENT_STRING'|
C:\beep\beep\gauge.h|5078|error: previous declaration of 'PPELEMENT_STRING' was here|
C:\beep\beep\gauge.h|5363|error: redefinition of typedef 'PELEMENT_SLIDER'|
C:\beep\beep\gauge.h|5079|error: previous declaration of 'PELEMENT_SLIDER' was here|
C:\beep\beep\gauge.h|5363|error: redefinition of typedef 'PPELEMENT_SLIDER'|
C:\beep\beep\gauge.h|5079|error: previous declaration of 'PPELEMENT_SLIDER' was here|
C:\beep\beep\gauge.h|5430|error: redefinition of typedef 'PELEMENT_ICON'|
C:\beep\beep\gauge.h|5080|error: previous declaration of 'PELEMENT_ICON' was here|
C:\beep\beep\gauge.h|5430|error: redefinition of typedef 'PPELEMENT_ICON'|
C:\beep\beep\gauge.h|5080|error: previous declaration of 'PPELEMENT_ICON' was here|
C:\beep\beep\gauge.h|5503|error: redefinition of typedef 'PELEMENT_MOVING_IMAGE'|
C:\beep\beep\gauge.h|5081|error: previous declaration of 'PELEMENT_MOVING_IMAGE' was here|
C:\beep\beep\gauge.h|5503|error: redefinition of typedef 'PPELEMENT_MOVING_IMAGE'|
C:\beep\beep\gauge.h|5081|error: previous declaration of 'PPELEMENT_MOVING_IMAGE' was here|
C:\beep\beep\gauge.h|5588|error: redefinition of typedef 'PELEMENT_SPRITE'|
C:\beep\beep\gauge.h|5082|error: previous declaration of 'PELEMENT_SPRITE' was here|
C:\beep\beep\gauge.h|5588|error: redefinition of typedef 'PPELEMENT_SPRITE'|
C:\beep\beep\gauge.h|5082|error: previous declaration of 'PPELEMENT_SPRITE' was here|
C:\beep\beep\gauge.h|5863|warning: useless keyword or type name in empty declaration|
C:\beep\beep\gauge.h|5960|warning: useless keyword or type name in empty declaration|
||=== Build finished: 28 errors, 4 warnings ===|