PDA

View Full Version : link errors with visual C++ 2005 pro



airseb
02-23-2007, 01:13 PM
Hi,
i have these errors with visual C++ 2005 pro :

c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(125) : warning C4005: 'WINGDIAPI' : macro redefinition
c:\program files\microsoft visual studio 8\vc\include\glew.h(118) : see previous definition of 'WINGDIAPI'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(126) : warning C4005: 'APIENTRY' : macro redefinition
c:\program files\microsoft visual studio 8\vc\include\glew.h(94) : see previous definition of 'APIENTRY'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(127) : warning C4005: 'CALLBACK' : macro redefinition
c:\program files\microsoft visual studio 8\vc\include\glew.h(110) : see previous definition of 'CALLBACK'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(167) : error C2143: syntax error : missing '}' before 'constant'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(913) : error C2143: syntax error : missing ';' before '}'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(920) : warning C4091: '' : ignored on left of 'unsigned int' when no variable is declared
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(930) : error C2143: syntax error : missing '}' before 'constant'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(951) : error C2143: syntax error : missing ';' before '}'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(955) : error C2143: syntax error : missing '}' before 'constant'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(958) : error C2143: syntax error : missing ';' before '}'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1003) : error C2373: 'glClearIndex' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(770) : see declaration of 'glClearIndex'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1008) : error C2373: 'glClearColor' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(768) : see declaration of 'glClearColor'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1010) : error C2373: 'glClear' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(766) : see declaration of 'glClear'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1012) : error C2373: 'glIndexMask' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(885) : see declaration of 'glIndexMask'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1015) : error C2373: 'glColorMask' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(805) : see declaration of 'glColorMask'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1017) : error C2373: 'glAlphaFunc' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(757) : see declaration of 'glAlphaFunc'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1019) : error C2373: 'glBlendFunc' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(763) : see declaration of 'glBlendFunc'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1021) : error C2373: 'glLogicOp' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(917) : see declaration of 'glLogicOp'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1023) : error C2373: 'glCullFace' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(813) : see declaration of 'glCullFace'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1025) : error C2373: 'glFrontFace' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(851) : see declaration of 'glFrontFace'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1027) : error C2373: 'glPointSize' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(955) : see declaration of 'glPointSize'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1029) : error C2373: 'glLineWidth' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(911) : see declaration of 'glLineWidth'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1031) : error C2373: 'glLineStipple' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(910) : see declaration of 'glLineStipple'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1033) : error C2373: 'glPolygonMode' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(956) : see declaration of 'glPolygonMode'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1035) : error C2373: 'glPolygonOffset' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(957) : see declaration of 'glPolygonOffset'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1037) : error C2373: 'glPolygonStipple' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(958) : see declaration of 'glPolygonStipple'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1039) : error C2373: 'glGetPolygonStipple' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(872) : see declaration of 'glGetPolygonStipple'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1041) : error C2373: 'glEdgeFlag' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(825) : see declaration of 'glEdgeFlag'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1043) : error C2373: 'glEdgeFlagv' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(827) : see declaration of 'glEdgeFlagv'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1046) : error C2373: 'glScissor' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1007) : see declaration of 'glScissor'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1048) : error C2373: 'glClipPlane' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(772) : see declaration of 'glClipPlane'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1050) : error C2373: 'glGetClipPlane' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(856) : see declaration of 'glGetClipPlane'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1052) : error C2373: 'glDrawBuffer' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(822) : see declaration of 'glDrawBuffer'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1054) : error C2373: 'glReadBuffer' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(992) : see declaration of 'glReadBuffer'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1056) : error C2373: 'glEnable' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(828) : see declaration of 'glEnable'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1058) : error C2373: 'glDisable' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(819) : see declaration of 'glDisable'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1060) : error C2373: 'glIsEnabled' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(899) : see declaration of 'glIsEnabled'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1063) : error C2373: 'glEnableClientState' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(829) : see declaration of 'glEnableClientState'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1065) : error C2373: 'glDisableClientState' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(820) : see declaration of 'glDisableClientState'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1068) : error C2373: 'glGetBooleanv' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(855) : see declaration of 'glGetBooleanv'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1070) : error C2373: 'glGetDoublev' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(857) : see declaration of 'glGetDoublev'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1072) : error C2373: 'glGetFloatv' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(859) : see declaration of 'glGetFloatv'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1074) : error C2373: 'glGetIntegerv' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(860) : see declaration of 'glGetIntegerv'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1077) : error C2373: 'glPushAttrib' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(964) : see declaration of 'glPushAttrib'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1079) : error C2373: 'glPopAttrib' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(959) : see declaration of 'glPopAttrib'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1082) : error C2373: 'glPushClientAttrib' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(965) : see declaration of 'glPushClientAttrib'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1084) : error C2373: 'glPopClientAttrib' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(960) : see declaration of 'glPopClientAttrib'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1087) : error C2373: 'glRenderMode' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1002) : see declaration of 'glRenderMode'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1089) : error C2373: 'glGetError' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(858) : see declaration of 'glGetError'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1091) : error C2373: 'glGetString' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(873) : see declaration of 'glGetString'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1093) : error C2373: 'glFinish' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(845) : see declaration of 'glFinish'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1095) : error C2373: 'glFlush' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(846) : see declaration of 'glFlush'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1097) : error C2373: 'glHint' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(884) : see declaration of 'glHint'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1105) : error C2373: 'glClearDepth' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(769) : see declaration of 'glClearDepth'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1107) : error C2373: 'glDepthFunc' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(816) : see declaration of 'glDepthFunc'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1109) : error C2373: 'glDepthMask' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(817) : see declaration of 'glDepthMask'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1111) : error C2373: 'glDepthRange' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(818) : see declaration of 'glDepthRange'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1119) : error C2373: 'glClearAccum' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(767) : see declaration of 'glClearAccum'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1121) : error C2373: 'glAccum' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(756) : see declaration of 'glAccum'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1129) : error C2373: 'glMatrixMode' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(930) : see declaration of 'glMatrixMode'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1133) : error C2373: 'glOrtho' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(945) : see declaration of 'glOrtho'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1137) : error C2373: 'glFrustum' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(852) : see declaration of 'glFrustum'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1140) : error C2373: 'glViewport' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1091) : see declaration of 'glViewport'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1142) : error C2373: 'glPushMatrix' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(966) : see declaration of 'glPushMatrix'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1144) : error C2373: 'glPopMatrix' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(961) : see declaration of 'glPopMatrix'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1146) : error C2373: 'glLoadIdentity' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(913) : see declaration of 'glLoadIdentity'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1148) : error C2373: 'glLoadMatrixd' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(914) : see declaration of 'glLoadMatrixd'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1149) : error C2373: 'glLoadMatrixf' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(915) : see declaration of 'glLoadMatrixf'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1151) : error C2373: 'glMultMatrixd' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(931) : see declaration of 'glMultMatrixd'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1152) : error C2373: 'glMultMatrixf' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(932) : see declaration of 'glMultMatrixf'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1155) : error C2373: 'glRotated' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1003) : see declaration of 'glRotated'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1157) : error C2373: 'glRotatef' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1004) : see declaration of 'glRotatef'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1159) : error C2373: 'glScaled' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1005) : see declaration of 'glScaled'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1160) : error C2373: 'glScalef' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1006) : see declaration of 'glScalef'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1162) : error C2373: 'glTranslated' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1064) : see declaration of 'glTranslated'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1163) : error C2373: 'glTranslatef' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1065) : see declaration of 'glTranslatef'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1171) : error C2373: 'glIsList' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(900) : see declaration of 'glIsList'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1173) : error C2373: 'glDeleteLists' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(814) : see declaration of 'glDeleteLists'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1175) : error C2373: 'glGenLists' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(853) : see declaration of 'glGenLists'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1177) : error C2373: 'glNewList' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(933) : see declaration of 'glNewList'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1179) : error C2373: 'glEndList' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(831) : see declaration of 'glEndList'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1181) : error C2373: 'glCallList' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(764) : see declaration of 'glCallList'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1184) : error C2373: 'glCallLists' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(765) : see declaration of 'glCallLists'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1186) : error C2373: 'glListBase' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(912) : see declaration of 'glListBase'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1194) : error C2373: 'glBegin' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(760) : see declaration of 'glBegin'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1196) : error C2373: 'glEnd' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(830) : see declaration of 'glEnd'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1199) : error C2373: 'glVertex2d' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1066) : see declaration of 'glVertex2d'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1200) : error C2373: 'glVertex2f' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1068) : see declaration of 'glVertex2f'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1201) : error C2373: 'glVertex2i' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1070) : see declaration of 'glVertex2i'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1202) : error C2373: 'glVertex2s' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1072) : see declaration of 'glVertex2s'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1204) : error C2373: 'glVertex3d' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1074) : see declaration of 'glVertex3d'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1205) : error C2373: 'glVertex3f' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1076) : see declaration of 'glVertex3f'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1206) : error C2373: 'glVertex3i' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1078) : see declaration of 'glVertex3i'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1207) : error C2373: 'glVertex3s' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1080) : see declaration of 'glVertex3s'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1209) : error C2373: 'glVertex4d' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1082) : see declaration of 'glVertex4d'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1210) : error C2373: 'glVertex4f' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1084) : see declaration of 'glVertex4f'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1211) : error C2373: 'glVertex4i' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1086) : see declaration of 'glVertex4i'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1212) : error C2373: 'glVertex4s' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1088) : see declaration of 'glVertex4s'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1214) : error C2373: 'glVertex2dv' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1067) : see declaration of 'glVertex2dv'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1215) : error C2373: 'glVertex2fv' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1069) : see declaration of 'glVertex2fv'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1216) : error C2373: 'glVertex2iv' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1071) : see declaration of 'glVertex2iv'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1217) : error C2373: 'glVertex2sv' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1073) : see declaration of 'glVertex2sv'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1219) : error C2373: 'glVertex3dv' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1075) : see declaration of 'glVertex3dv'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1220) : error C2373: 'glVertex3fv' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1077) : see declaration of 'glVertex3fv'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1221) : error C2373: 'glVertex3iv' : redefinition; different type modifiers
c:\program files\microsoft visual studio 8\vc\include\glew.h(1079) : see declaration of 'glVertex3iv'
c:\program files\microsoft visual studio 8\vc\include\gl\gl.h(1221) : fatal error C1003: error count exceeds 100; stopping compilation

i put these includes :

#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <fstream>
#include <math.h>
#include <string.h>
#include <glew.h>
#include <glut.h>
#include <sdl.h>
//#include <GL\gl.h>
//#include <GL\glext.h>
#include <SDL_image.h>
using namespace std;

//#pragma comment( lib, "opengl32.lib")
#pragma comment( lib,"sdl.lib")
#pragma comment( lib,"sdlmain.lib")
#pragma comment( lib, "SDL_image.lib")
#pragma comment( lib, "glew32.lib")
#pragma comment( lib, "glut32.lib")

Can you help me ?

dimensionX
02-23-2007, 03:19 PM
Try

#include <windows.h>

before all the other includes.

airseb
02-23-2007, 04:10 PM
i have tried but i always have errors

V-man
02-23-2007, 04:39 PM
you need to put #include <GL/glew.h> before the gl stuff and that may be tru for the SDL headers as well
You may need to edit the SDL headers.

airseb
02-24-2007, 12:03 AM
it don't work :-(
i do that :
#include <windows.h>
#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <fstream>
#include <math.h>
#include <string.h>
#include <gl/glew.h>
#include <sdl.h>
#include <SDL_image.h>
#include <gl/glut.h>

#include <GL/gl.h>
#include <GL/glext.h>

using namespace std;

#pragma comment( lib, "opengl32.lib")
#pragma comment( lib,"sdl.lib")
#pragma comment( lib,"sdlmain.lib")
#pragma comment( lib, "SDL_image.lib")
#pragma comment( lib, "glew32.lib")
#pragma comment( lib, "glut32.lib")

ZbuffeR
02-24-2007, 12:17 AM
The Glew install doc explicitely states that you should not include gl.h/glext.h when glew.h is included.

airseb
02-24-2007, 12:27 AM
i'm sorry but i have removed gl.h and glext.h and still don't work (same errors)

airseb
02-24-2007, 12:30 AM
i'm sorry but i have removed gl.h and glext.h and still don't work (same errors)

airseb
02-24-2007, 01:53 AM
i have reinstalled visual and now it works