Win 32/64 Dedicated server fails to compile and cross-compile #39

Closed
motorsep opened this Issue Aug 26, 2012 · 6 comments

Comments

2 participants
@motorsep

I am failing to compile dedicated binary on both Linux and Windows. Here is what I get on Windows:

//========================================================================
g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(33): error C2491: 'alGetError' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(37): error C2491: 'alIsSource' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(41): error C2491: 'alGenBuffers' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(43): error C2491: 'alSourceStop' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(45): error C2491: 'alGetSourcei' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(47): error C2491: 'alSource3i' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(50): error C2491: 'alGetString' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(54): error C2491: 'alGetInteger' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(56): error C2491: 'alcSuspendContext' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(58): error C2491: 'alcOpenDevice' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(62): error C2491: 'alcIsExtensionPresent' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(66): error C2491: 'alDeleteBuffers' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(68): error C2491: 'alIsExtensionPresent' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(76): error C2491: 'alBufferData' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(78): error C2491: 'alcMakeContextCurrent' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(82): error C2491: 'alcProcessContext' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(86): error C2491: 'alcDestroyContext' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(90): error C2491: 'alcGetString' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(98): error C2491: 'alBufferData' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(100): error C2491: 'alDeleteBuffers' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(102): error C2491: 'alIsExtensionPresent' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(106): error C2491: 'alDeleteSources' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(108): error C2491: 'alGetEnumValue' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(112): error C2491: 'alGetProcAddress' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(117): error C2491: 'alcCreateContext' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(121): error C2491: 'alcOpenDevice' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(125): error C2491: 'alListenerfv' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(127): error C2491: 'alSourceQueueBuffers' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(129): error C2491: 'alSourcei' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(131): error C2491: 'alListenerf' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(133): error C2491: 'alcCloseDevice' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(135): error C2491: 'alIsBuffer' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(140): error C2491: 'alSource3f' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(142): error C2491: 'alGenSources' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(144): error C2491: 'alSourcef' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(146): error C2491: 'alSourceUnqueueBuffers' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\openal_stub.cpp(148): error C2491: 'alSourcePlay' : definition of dllimport function not allowed
4> stub_gl.cpp
3> threads.cpp
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(32): error C2373: 'glAccum' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1152) : see declaration of 'glAccum'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(32): error C2491: 'glAccum' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(33): error C2373: 'glAlphaFunc' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1153) : see declaration of 'glAlphaFunc'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(33): error C2491: 'glAlphaFunc' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(34): error C2373: 'glAreTexturesResident' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1154) : see declaration of 'glAreTexturesResident'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(34): error C2491: 'glAreTexturesResident' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(35): error C2373: 'glArrayElement' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1155) : see declaration of 'glArrayElement'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(35): error C2491: 'glArrayElement' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(36): error C2373: 'glBegin' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1156) : see declaration of 'glBegin'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(36): error C2491: 'glBegin' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(37): error C2373: 'glBindTexture' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1157) : see declaration of 'glBindTexture'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(37): error C2491: 'glBindTexture' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(38): error C2373: 'glBitmap' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1158) : see declaration of 'glBitmap'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(38): error C2491: 'glBitmap' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(39): error C2373: 'glBlendFunc' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1159) : see declaration of 'glBlendFunc'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(39): error C2491: 'glBlendFunc' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(40): error C2373: 'glCallList' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1160) : see declaration of 'glCallList'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(40): error C2491: 'glCallList' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(41): error C2373: 'glCallLists' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1161) : see declaration of 'glCallLists'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(41): error C2491: 'glCallLists' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(42): error C2373: 'glClear' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1162) : see declaration of 'glClear'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(42): error C2491: 'glClear' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(43): error C2373: 'glClearAccum' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1163) : see declaration of 'glClearAccum'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(43): error C2491: 'glClearAccum' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(44): error C2373: 'glClearColor' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1164) : see declaration of 'glClearColor'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(44): error C2491: 'glClearColor' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(45): error C2373: 'glClearDepth' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1165) : see declaration of 'glClearDepth'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(45): error C2491: 'glClearDepth' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(46): error C2373: 'glClearIndex' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1166) : see declaration of 'glClearIndex'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(46): error C2491: 'glClearIndex' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(47): error C2373: 'glClearStencil' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1167) : see declaration of 'glClearStencil'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(47): error C2491: 'glClearStencil' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(48): error C2373: 'glClipPlane' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1168) : see declaration of 'glClipPlane'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(48): error C2491: 'glClipPlane' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(49): error C2373: 'glColor3b' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1169) : see declaration of 'glColor3b'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(49): error C2491: 'glColor3b' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(50): error C2373: 'glColor3bv' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1170) : see declaration of 'glColor3bv'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(50): error C2491: 'glColor3bv' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(51): error C2373: 'glColor3d' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1171) : see declaration of 'glColor3d'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(51): error C2491: 'glColor3d' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(52): error C2373: 'glColor3dv' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1172) : see declaration of 'glColor3dv'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(52): error C2491: 'glColor3dv' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(53): error C2373: 'glColor3f' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1173) : see declaration of 'glColor3f'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(53): error C2491: 'glColor3f' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(54): error C2373: 'glColor3fv' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1174) : see declaration of 'glColor3fv'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(54): error C2491: 'glColor3fv' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(55): error C2373: 'glColor3i' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1175) : see declaration of 'glColor3i'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(55): error C2491: 'glColor3i' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(56): error C2373: 'glColor3iv' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1176) : see declaration of 'glColor3iv'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(56): error C2491: 'glColor3iv' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(57): error C2373: 'glColor3s' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1177) : see declaration of 'glColor3s'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(57): error C2491: 'glColor3s' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(58): error C2373: 'glColor3sv' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1178) : see declaration of 'glColor3sv'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(58): error C2491: 'glColor3sv' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(59): error C2373: 'glColor3ub' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1179) : see declaration of 'glColor3ub'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(59): error C2491: 'glColor3ub' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(60): error C2373: 'glColor3ubv' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1180) : see declaration of 'glColor3ubv'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(60): error C2491: 'glColor3ubv' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(61): error C2373: 'glColor3ui' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1181) : see declaration of 'glColor3ui'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(61): error C2491: 'glColor3ui' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(62): error C2373: 'glColor3uiv' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1182) : see declaration of 'glColor3uiv'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(62): error C2491: 'glColor3uiv' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(63): error C2373: 'glColor3us' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1183) : see declaration of 'glColor3us'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(63): error C2491: 'glColor3us' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(64): error C2373: 'glColor3usv' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1184) : see declaration of 'glColor3usv'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(64): error C2491: 'glColor3usv' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(65): error C2373: 'glColor4b' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1185) : see declaration of 'glColor4b'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(65): error C2491: 'glColor4b' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(66): error C2373: 'glColor4bv' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1186) : see declaration of 'glColor4bv'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(66): error C2491: 'glColor4bv' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(67): error C2373: 'glColor4d' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1187) : see declaration of 'glColor4d'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(67): error C2491: 'glColor4d' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(68): error C2373: 'glColor4dv' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1188) : see declaration of 'glColor4dv'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(68): error C2491: 'glColor4dv' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(69): error C2373: 'glColor4f' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1189) : see declaration of 'glColor4f'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(69): error C2491: 'glColor4f' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(70): error C2373: 'glColor4fv' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1190) : see declaration of 'glColor4fv'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(70): error C2491: 'glColor4fv' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(71): error C2373: 'glColor4i' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1191) : see declaration of 'glColor4i'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(71): error C2491: 'glColor4i' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(72): error C2373: 'glColor4iv' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1192) : see declaration of 'glColor4iv'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(72): error C2491: 'glColor4iv' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(73): error C2373: 'glColor4s' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1193) : see declaration of 'glColor4s'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(73): error C2491: 'glColor4s' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(74): error C2373: 'glColor4sv' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1194) : see declaration of 'glColor4sv'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(74): error C2491: 'glColor4sv' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(75): error C2373: 'glColor4ub' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1195) : see declaration of 'glColor4ub'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(75): error C2491: 'glColor4ub' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(76): error C2373: 'glColor4ubv' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1196) : see declaration of 'glColor4ubv'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(76): error C2491: 'glColor4ubv' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(77): error C2373: 'glColor4ui' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1197) : see declaration of 'glColor4ui'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(77): error C2491: 'glColor4ui' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(78): error C2373: 'glColor4uiv' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1198) : see declaration of 'glColor4uiv'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(78): error C2491: 'glColor4uiv' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(79): error C2373: 'glColor4us' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1199) : see declaration of 'glColor4us'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(79): error C2491: 'glColor4us' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(80): error C2373: 'glColor4usv' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1200) : see declaration of 'glColor4usv'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(80): error C2491: 'glColor4usv' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(81): error C2373: 'glColorMask' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1201) : see declaration of 'glColorMask'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(81): error C2491: 'glColorMask' : definition of dllimport function not allowed
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(82): error C2373: 'glColorMaterial' : redefinition; different type modifiers
4> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(1202) : see declaration of 'glColorMaterial'
4>g:\games\steelstorm2_idtech4_svn\neo\sys\stub\stub_gl.cpp(82): fatal error C1003: error count exceeds 100; stopping compilation
4> util_stub.cpp
//========================================================================

Linux errors are there same:

//========================================================================
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:33:27: error: function ‘ALenum alGetError()’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘ALenum alGetError()’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:33:27: warning: ‘ALenum alGetError()’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:37:30: error: function ‘ALboolean alIsSource(ALuint)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘ALboolean alIsSource(ALuint)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:37:30: warning: ‘ALboolean alIsSource(ALuint)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:41:25: error: function ‘void alGenBuffers(ALsizei, ALuint_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘void alGenBuffers(ALsizei, ALuint_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:41:25: warning: ‘void alGenBuffers(ALsizei, ALuint_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:43:25: error: function ‘void alSourceStop(ALuint)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘void alSourceStop(ALuint)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:43:25: warning: ‘void alSourceStop(ALuint)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:45:25: error: function ‘void alGetSourcei(ALuint, ALenum, ALint_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘void alGetSourcei(ALuint, ALenum, ALint_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:45:25: warning: ‘void alGetSourcei(ALuint, ALenum, ALint_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:47:25: error: function ‘void alSource3i(ALuint, ALenum, ALint, ALint, ALint)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘void alSource3i(ALuint, ALenum, ALint, ALint, ALint)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:47:25: warning: ‘void alSource3i(ALuint, ALenum, ALint, ALint, ALint)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:50:34: error: function ‘const ALchar* alGetString(ALenum)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘const ALchar* alGetString(ALenum)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:50:34: warning: ‘const ALchar* alGetString(ALenum)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:54:26: error: function ‘ALint alGetInteger(ALenum)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘ALint alGetInteger(ALenum)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:54:26: warning: ‘ALint alGetInteger(ALenum)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:56:27: error: function ‘void alcSuspendContext(ALCcontext_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘void alcSuspendContext(ALCcontext_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:56:27: warning: ‘void alcSuspendContext(ALCcontext_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:58:34: error: function ‘ALCdevice_ alcOpenDevice(const ALchar_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘ALCdevice_ alcOpenDevice(const ALchar_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:58:34: warning: ‘ALCdevice_ alcOpenDevice(const ALchar_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:62:33: error: function ‘ALCboolean alcIsExtensionPresent(ALCdevice_, const ALCchar_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘ALCboolean alcIsExtensionPresent(ALCdevice_, const ALCchar_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:62:33: warning: ‘ALCboolean alcIsExtensionPresent(ALCdevice_, const ALCchar_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:66:25: error: function ‘void alDeleteBuffers(ALsizei, const ALuint_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘void alDeleteBuffers(ALsizei, const ALuint_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:66:25: warning: ‘void alDeleteBuffers(ALsizei, const ALuint_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:68:30: error: function ‘ALboolean alIsExtensionPresent(const ALchar_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘ALboolean alIsExtensionPresent(const ALchar_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:68:30: warning: ‘ALboolean alIsExtensionPresent(const ALchar_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:72:25: error: function ‘void alBufferData(ALuint, ALenum, const ALvoid_, ALsizei, ALsizei)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘void alBufferData(ALuint, ALenum, const ALvoid_, ALsizei, ALsizei)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:72:25: warning: ‘void alBufferData(ALuint, ALenum, const ALvoid_, ALsizei, ALsizei)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:78:33: error: function ‘ALCboolean alcMakeContextCurrent(ALCcontext_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘ALCboolean alcMakeContextCurrent(ALCcontext_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:78:33: warning: ‘ALCboolean alcMakeContextCurrent(ALCcontext_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:82:30: error: function ‘ALCvoid alcProcessContext(ALCcontext_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘ALCvoid alcProcessContext(ALCcontext_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:82:30: warning: ‘ALCvoid alcProcessContext(ALCcontext_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:86:30: error: function ‘ALCvoid alcDestroyContext(ALCcontext_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘ALCvoid alcDestroyContext(ALCcontext_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:86:30: warning: ‘ALCvoid alcDestroyContext(ALCcontext_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:90:38: error: function ‘const ALCchar_ alcGetString(ALCdevice_, ALCenum)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘const ALCchar_ alcGetString(ALCdevice_, ALCenum)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:90:38: warning: ‘const ALCchar_ alcGetString(ALCdevice_, ALCenum)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:94:25: error: function ‘void alBufferData(ALuint, ALenum, ALvoid_, ALsizei, ALsizei)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp💯25: error: function ‘void alDeleteBuffers(ALsizei, ALuint_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:102:30: error: function ‘ALboolean alIsExtensionPresent(ALubyte_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:106:25: error: function ‘void alDeleteSources(ALsizei, const ALuint_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘void alDeleteSources(ALsizei, const ALuint_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:106:25: warning: ‘void alDeleteSources(ALsizei, const ALuint_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:108:27: error: function ‘ALenum alGetEnumValue(const ALchar_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘ALenum alGetEnumValue(const ALchar_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:108:27: warning: ‘ALenum alGetEnumValue(const ALchar_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:112:26: error: function ‘void* alGetProcAddress(const ALchar_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘void_ alGetProcAddress(const ALchar_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:112:26: warning: ‘void_ alGetProcAddress(const ALchar_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:116:35: error: function ‘ALCcontext_ alcCreateContext(ALCdevice_, const ALCint_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘ALCcontext* alcCreateContext(ALCdevice_, const ALCint_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:116:35: warning: ‘ALCcontext* alcCreateContext(ALCdevice_, const ALCint_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:121:34: error: function ‘ALCdevice* alcOpenDevice(ALubyte_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:125:25: error: function ‘void alListenerfv(ALenum, const ALfloat_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘void alListenerfv(ALenum, const ALfloat_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:125:25: warning: ‘void alListenerfv(ALenum, const ALfloat_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:127:25: error: function ‘void alSourceQueueBuffers(ALuint, ALsizei, const ALuint_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘void alSourceQueueBuffers(ALuint, ALsizei, const ALuint_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:127:25: warning: ‘void alSourceQueueBuffers(ALuint, ALsizei, const ALuint_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:129:25: error: function ‘void alSourcei(ALuint, ALenum, ALint)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘void alSourcei(ALuint, ALenum, ALint)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:129:25: warning: ‘void alSourcei(ALuint, ALenum, ALint)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:131:25: error: function ‘void alListenerf(ALenum, ALfloat)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘void alListenerf(ALenum, ALfloat)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:131:25: warning: ‘void alListenerf(ALenum, ALfloat)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:133:33: error: function ‘ALCboolean alcCloseDevice(ALCdevice_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘ALCboolean alcCloseDevice(ALCdevice_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:133:33: warning: ‘ALCboolean alcCloseDevice(ALCdevice_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:135:30: error: function ‘ALboolean alIsBuffer(ALuint)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘ALboolean alIsBuffer(ALuint)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:135:30: warning: ‘ALboolean alIsBuffer(ALuint)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:139:25: error: function ‘void alSource3f(ALuint, ALenum, ALfloat, ALfloat, ALfloat)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘void alSource3f(ALuint, ALenum, ALfloat, ALfloat, ALfloat)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:139:25: warning: ‘void alSource3f(ALuint, ALenum, ALfloat, ALfloat, ALfloat)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:142:25: error: function ‘void alGenSources(ALsizei, ALuint_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘void alGenSources(ALsizei, ALuint_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:142:25: warning: ‘void alGenSources(ALsizei, ALuint_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:144:25: error: function ‘void alSourcef(ALuint, ALenum, ALfloat)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘void alSourcef(ALuint, ALenum, ALfloat)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:144:25: warning: ‘void alSourcef(ALuint, ALenum, ALfloat)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:146:25: error: function ‘void alSourceUnqueueBuffers(ALuint, ALsizei, ALuint_)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘void alSourceUnqueueBuffers(ALuint, ALsizei, ALuint_)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:146:25: warning: ‘void alSourceUnqueueBuffers(ALuint, ALsizei, ALuint_)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: At global scope:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:148:25: error: function ‘void alSourcePlay(ALuint)’ definition is marked dllimport
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp: In function ‘void alSourcePlay(ALuint)’:
/home/motorsep/games/doom3_dhew3_git/neo/sys/stub/openal_stub.cpp:148:25: warning: ‘void alSourcePlay(ALuint)’ redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
make[2]: *** [CMakeFiles/dhewm3ded.dir/sys/stub/openal_stub.cpp.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
//========================================================================

All that when compiling on Win 7 with MSVC 2010 Pro and cross-compiling on Linux.

@motorsep

This comment has been minimized.

Show comment Hide comment
@motorsep

motorsep Aug 28, 2012

Tried a patch by caedes. Got the following:

4>glimp.obj : error LNK2005: "bool __cdecl GLimp_Init(struct glimpParms_t)" (?GLimp_Init@@YA_NUglimpParms_t@@@z) already defined in stub_gl.obj
4>glimp.obj : error LNK2005: "bool __cdecl GLimp_SetScreenParms(struct glimpParms_t)" (?GLimp_SetScreenParms@@YA_NUglimpParms_t@@@z) already defined in stub_gl.obj
4>glimp.obj : error LNK2005: "void __cdecl GLimp_Shutdown(void)" (?GLimp_Shutdown@@yaxxz) already defined in stub_gl.obj
4>glimp.obj : error LNK2005: "void __cdecl GLimp_SwapBuffers(void)" (?GLimp_SwapBuffers@@yaxxz) already defined in stub_gl.obj
4>glimp.obj : error LNK2005: "void __cdecl GLimp_SetGamma(unsigned short * const,unsigned short * const,unsigned short * const)" (?GLimp_SetGamma@@yaxqeag00@Z) already defined in stub_gl.obj
4>glimp.obj : error LNK2005: "void __cdecl GLimp_ActivateContext(void)" (?GLimp_ActivateContext@@yaxxz) already defined in stub_gl.obj
4>glimp.obj : error LNK2005: "void __cdecl GLimp_DeactivateContext(void)" (?GLimp_DeactivateContext@@yaxxz) already defined in stub_gl.obj
4>glimp.obj : error LNK2005: GLimp_ExtensionPointer already defined in stub_gl.obj

4>renderbump.obj : error LNK2019: unresolved external symbol __imp_wglMakeCurrent referenced in function "void __cdecl ResizeWindow(int,int)" (?ResizeWindow@@yaxhh@Z)
4>snd_cache.obj : error LNK2019: unresolved external symbol alBufferData referenced in function "public: void __cdecl idSoundSample::MakeDefault(void)" (?MakeDefault@idSoundSample@@qeaaxxz)
4>snd_world.obj : error LNK2001: unresolved external symbol alBufferData
4>snd_system.obj : error LNK2019: unresolved external symbol alcMakeContextCurrent referenced in function "public: virtual void __cdecl idSoundSystemLocal::Init(void)" (?Init@idSoundSystemLocal@@ueaaxxz)
4>glimp.obj : error LNK2019: unresolved external symbol __imp_wglGetCurrentDC referenced in function "bool __cdecl GLimp_Init(struct glimpParms_t)" (?GLimp_Init@@YA_NUglimpParms_t@@@z)
4>G:\games\steelstorm2_idtech4_svn\ss2_msvc_build\Release\SteelStorm2ded.exe : fatal error LNK1120: 4 unresolved externals

Tried a patch by caedes. Got the following:

4>glimp.obj : error LNK2005: "bool __cdecl GLimp_Init(struct glimpParms_t)" (?GLimp_Init@@YA_NUglimpParms_t@@@z) already defined in stub_gl.obj
4>glimp.obj : error LNK2005: "bool __cdecl GLimp_SetScreenParms(struct glimpParms_t)" (?GLimp_SetScreenParms@@YA_NUglimpParms_t@@@z) already defined in stub_gl.obj
4>glimp.obj : error LNK2005: "void __cdecl GLimp_Shutdown(void)" (?GLimp_Shutdown@@yaxxz) already defined in stub_gl.obj
4>glimp.obj : error LNK2005: "void __cdecl GLimp_SwapBuffers(void)" (?GLimp_SwapBuffers@@yaxxz) already defined in stub_gl.obj
4>glimp.obj : error LNK2005: "void __cdecl GLimp_SetGamma(unsigned short * const,unsigned short * const,unsigned short * const)" (?GLimp_SetGamma@@yaxqeag00@Z) already defined in stub_gl.obj
4>glimp.obj : error LNK2005: "void __cdecl GLimp_ActivateContext(void)" (?GLimp_ActivateContext@@yaxxz) already defined in stub_gl.obj
4>glimp.obj : error LNK2005: "void __cdecl GLimp_DeactivateContext(void)" (?GLimp_DeactivateContext@@yaxxz) already defined in stub_gl.obj
4>glimp.obj : error LNK2005: GLimp_ExtensionPointer already defined in stub_gl.obj

4>renderbump.obj : error LNK2019: unresolved external symbol __imp_wglMakeCurrent referenced in function "void __cdecl ResizeWindow(int,int)" (?ResizeWindow@@yaxhh@Z)
4>snd_cache.obj : error LNK2019: unresolved external symbol alBufferData referenced in function "public: void __cdecl idSoundSample::MakeDefault(void)" (?MakeDefault@idSoundSample@@qeaaxxz)
4>snd_world.obj : error LNK2001: unresolved external symbol alBufferData
4>snd_system.obj : error LNK2019: unresolved external symbol alcMakeContextCurrent referenced in function "public: virtual void __cdecl idSoundSystemLocal::Init(void)" (?Init@idSoundSystemLocal@@ueaaxxz)
4>glimp.obj : error LNK2019: unresolved external symbol __imp_wglGetCurrentDC referenced in function "bool __cdecl GLimp_Init(struct glimpParms_t)" (?GLimp_Init@@YA_NUglimpParms_t@@@z)
4>G:\games\steelstorm2_idtech4_svn\ss2_msvc_build\Release\SteelStorm2ded.exe : fatal error LNK1120: 4 unresolved externals

@DanielGibson

This comment has been minimized.

Show comment Hide comment
@DanielGibson

DanielGibson Aug 28, 2012

Member

probably a part of the patch (http://pastebin.com/GjzVJqUj) wasn't applied correctly.
I guess that I'll have a proper fix in a pull request later this evening.

Member

DanielGibson commented Aug 28, 2012

probably a part of the patch (http://pastebin.com/GjzVJqUj) wasn't applied correctly.
I guess that I'll have a proper fix in a pull request later this evening.

@motorsep

This comment has been minimized.

Show comment Hide comment
@motorsep

motorsep Aug 29, 2012

The patch that you said yesterday cross-compiles, doesn't cross-compile here :(

http://pastebin.com/h8enUJVr

Neither 32 nor 64 bit cross-compiles :/

The patch that you said yesterday cross-compiles, doesn't cross-compile here :(

http://pastebin.com/h8enUJVr

Neither 32 nor 64 bit cross-compiles :/

@DanielGibson

This comment has been minimized.

Show comment Hide comment
@DanielGibson

DanielGibson Aug 29, 2012

Member

On Wed, Aug 29, 2012 at 7:36 AM, motorsep notifications@github.com wrote:

The patch that you said yesterday cross-compiles, doesn't cross-compile
here :(

http://pastebin.com/h8enUJVr

strange.. it worked here.
anyway, wait for the proper patch (possibly this evening) ;-)

Member

DanielGibson commented Aug 29, 2012

On Wed, Aug 29, 2012 at 7:36 AM, motorsep notifications@github.com wrote:

The patch that you said yesterday cross-compiles, doesn't cross-compile
here :(

http://pastebin.com/h8enUJVr

strange.. it worked here.
anyway, wait for the proper patch (possibly this evening) ;-)

@DanielGibson

This comment has been minimized.

Show comment Hide comment
@DanielGibson

DanielGibson Aug 29, 2012

Member

See #41

Member

DanielGibson commented Aug 29, 2012

See #41

@motorsep

This comment has been minimized.

Show comment Hide comment
@motorsep

motorsep Aug 30, 2012

Sine it compiles now, this issue is obsolete. Although dedicated server still has unresolved problems.

Sine it compiles now, this issue is obsolete. Although dedicated server still has unresolved problems.

@motorsep motorsep closed this Aug 30, 2012

kortemik pushed a commit to kortemik/dhewm_hack that referenced this issue Aug 22, 2014

Fix dedicated server for Windows
* the OpenAL function definitions mustn't include __declspec(dllimport)
  => fixed by pretending to compile OpenAL statically
* glimp.cpp shouldn't be used in dedicated-only mode (as it was already
  the case on Linux and OSX)
  => No special handling for ID_DEDICATED needed in glimp.cpp, as it's not
   used anyway
* add APIENTRY to every gl function in stub_gl.cpp for compatibility
  with windows headers and MSVC
* remove GL/gl.h #include from win_local.h as it's not needed
* in qgl.h, when building dedicated server for windows, redefine WINGDIAPI
  to nothing for SDL_opengl.h #include to get rid off __declspec(dllimport)
  by using #pragma push_macro and pop_macro, because our stub is no dll.

Fixes dhewm/dhewm3#39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment