|
|
以上编译环境是VC6.0。我把例子文件(.h 和 .cpp文件)加入工程中,也把DXSDK的include 和 lib配置好了。单个cpp文件编译没一个通过的。以下是编译DxStdAfx.cpp出错信息:
--------------------Configuration: DX9 - Win32 Debug--------------------
Compiling...
dxstdafx.cpp
d:\dxsdk9c\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1'
d:\dxsdk9c\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
d:\dxsdk9c\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers
d:\dxsdk9c\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2'
d:\dxsdk9c\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
d:\dxsdk9c\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers
d:\program files\microsoft visual studio\myprojects\dx9\dxstdafx.h(71) : warning C4068: unknown pragma
d:\program files\microsoft visual studio\myprojects\dx9\dxstdafx.h(72) : warning C4068: unknown pragma
d:\program files\microsoft visual studio\myprojects\dx9\dxstdafx.h(73) : warning C4068: unknown pragma
d:\program files\microsoft visual studio\myprojects\dx9\dxstdafx.h(74) : warning C4068: unknown pragma
d:\program files\microsoft visual studio\myprojects\dx9\dxstdafx.h(75) : warning C4068: unknown pragma
d:\program files\microsoft visual studio\myprojects\dx9\dxstdafx.h(76) : warning C4068: unknown pragma
d:\program files\microsoft visual studio\myprojects\dx9\dxut.h(11) : fatal error C1189: #error : "DXUT requires a Unicode build. See the nearby comments for details"
执行 cl.exe 时出错.
dxstdafx.obj - 1 error(s), 0 warning(s) |
|