编译时出现这样的错误:
Linking...
Creating library ..\..\Release\SDL/SDLRelease.lib and object ..\..\Release\SDL/SDLRelease.exp
SDL_dx5video.obj : error LNK2001: unresolved external symbol _IID_IDirectDrawGammaControl
..\SDLRelease.dll : fatal error LNK1120: 1 unresolved externals
如何解决?谢谢!!
------解决方案--------------------------------------------------------
应该是接口的定义找不到了,可以google下IID_IDirectDrawGammaControl找找看有无相关接口的定义代码,拷贝过来应该可以解决。
------解决方案--------------------------------------------------------
接口ID IID_IDirectDrawGammaControl定义在dxguid.lib中,
确认dxguid.lib没问题。
------解决方案--------------------------------------------------------
编译选项添加了dxguid.lib的链接位置了么?