VC2005下编译DirectX9.0的SDK问题
2007-06-29 15:21
309 查看
今天重装了OS,来整理一下VC2005下编译DirectX9.0的SDK问题
错误①:
------ 已启动全部重新生成: 项目: BaseClasses, 配置: Debug Unicode Win32 ------
正在删除项目“BaseClasses”(配置“Debug Unicode|Win32”)的中间文件和输出文件
正在编译...
dllentry.cpp
C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/include/winnt.h(222) : error C2146: 语法错误: 缺少“;”(在标识符“PVOID64”的前面)
C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/include/winnt.h(222) : error C4430: 缺少类型说明符- 假定为int。注意: C++ 不支持默认int
C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/include/winnt.h(5940) : error C2146: 语法错误: 缺少“;”(在标识符“Buffer”的前面)
C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/include/winnt.h(5940) : error C4430: 缺少类型说明符- 假定为int。注意: C++ 不支持默认int
C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/include/winnt.h(5940) : error C4430: 缺少类型说明符- 假定为int。注意: C++ 不支持默认int
c:/Program Files/DXSDK/Extras/DirectShow/Samples/C++/DirectShow/BaseClasses/ctlutil.h(278) : error C4430: 缺少类型说明符- 假定为int。注意: C++ 不支持默认int
c:/Program Files/DXSDK/Extras/DirectShow/include/uuids.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为Unicode 格式以防止数据丢失
生成日志保存在“file://c:/Program Files/DXSDK/Extras/DirectShow/Samples/C++/DirectShow/BaseClasses/Debug_Unicode/BuildLog.htm”
BaseClasses - 6 个错误,个警告
========== 全部重新生成: 0 已成功, 1 已失败, 0 已跳过==========
解决方案:我们在添加ddraw.h的文件时,将它的目录放到了 $(VCInstallDir)PlatformSDK/include 的前面,只要我们换一下就可以。将ddraw.h的目录放到 $(VCInstallDir)PlatformSDK/include 后面。 OK
问题②
c:/Program Files/DXSDK/Extras/DirectShow/Samples/C++/DirectShow/BaseClasses/ctlutil.h(278) : error C4430: 缺少类型说明符- 假定为int。注意: C++ 不支持默认int
COARefTime(LONG);
operator=(LONG);
解决方案:改为
COARefTime(LONG);
int operator=(LONG);
在有一些错误自己都可以解决,像什么没定义等。
错误①:
------ 已启动全部重新生成: 项目: BaseClasses, 配置: Debug Unicode Win32 ------
正在删除项目“BaseClasses”(配置“Debug Unicode|Win32”)的中间文件和输出文件
正在编译...
dllentry.cpp
C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/include/winnt.h(222) : error C2146: 语法错误: 缺少“;”(在标识符“PVOID64”的前面)
C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/include/winnt.h(222) : error C4430: 缺少类型说明符- 假定为int。注意: C++ 不支持默认int
C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/include/winnt.h(5940) : error C2146: 语法错误: 缺少“;”(在标识符“Buffer”的前面)
C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/include/winnt.h(5940) : error C4430: 缺少类型说明符- 假定为int。注意: C++ 不支持默认int
C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/include/winnt.h(5940) : error C4430: 缺少类型说明符- 假定为int。注意: C++ 不支持默认int
c:/Program Files/DXSDK/Extras/DirectShow/Samples/C++/DirectShow/BaseClasses/ctlutil.h(278) : error C4430: 缺少类型说明符- 假定为int。注意: C++ 不支持默认int
c:/Program Files/DXSDK/Extras/DirectShow/include/uuids.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为Unicode 格式以防止数据丢失
生成日志保存在“file://c:/Program Files/DXSDK/Extras/DirectShow/Samples/C++/DirectShow/BaseClasses/Debug_Unicode/BuildLog.htm”
BaseClasses - 6 个错误,个警告
========== 全部重新生成: 0 已成功, 1 已失败, 0 已跳过==========
解决方案:我们在添加ddraw.h的文件时,将它的目录放到了 $(VCInstallDir)PlatformSDK/include 的前面,只要我们换一下就可以。将ddraw.h的目录放到 $(VCInstallDir)PlatformSDK/include 后面。 OK
问题②
c:/Program Files/DXSDK/Extras/DirectShow/Samples/C++/DirectShow/BaseClasses/ctlutil.h(278) : error C4430: 缺少类型说明符- 假定为int。注意: C++ 不支持默认int
COARefTime(LONG);
operator=(LONG);
解决方案:改为
COARefTime(LONG);
int operator=(LONG);
在有一些错误自己都可以解决,像什么没定义等。
相关文章推荐
- VC2005下编译DirectX9.0的SDK问题
- VC6中使用VC2005编译的DLL问题
- 关于C++(VC2005)编译多一条JMP指令的问题,待解决
- vc2005编译过程中"没有找到MFC80UD.DLL,因此这个程序未能启动.重新安装应用程序可能会修复此问题"? 的彻底解决
- 使用Visual Studio.net 2005 编译 Microsoft Platform SDK\Samples\Multimedia\DirectShow\BaseClasses 的问题
- 关于 VC 2005编译DCMTK的问题
- VC2005 编译 X264 问题
- 关于安装 DirectX SDk Dec 2005 后无法编译DirectShow应用程序的问题
- VC6中使用VC2005编译的DLL问题
- 关于vc2005编译时的warning C4273 …… inconsistent dll linkage问题
- VC2005编译的问题
- VS2008 编译 DirectX SDK BaseClasses 时的问题 (z)(2009-03-26 17:12:54)转载
- android 编译sdk更改为6.0时出现的问题
- 关于MT8127中sdk的编译出错问题
- VC2005 UNICODE下 CStdioFile无法写入中文的问题
- VC++2005相关问题解决方案
- VC一些操作,编译的基础问题
- 很经典的问题---在VC++ 2005中fstream对象无法访问中文路径下的文件,包括英文路径下的中文名文件。
- VC2005使用的一些问题及解决方法
- VC编译时的一些问题