我想使用包含文件
#include <d3d11.h>
#include <d3dx11.h>
#include <d3dcompiler.h>
#include <xnamath.h>在visual studio 6.0中。但是当我编译.cpp时,我们得到了这个错误:
:\Users\8up tuotlo\Desktop\Visual C++ 6.0 Proects\11\Article1\Article1.cpp(28) : error C2146: syntax error : missing ';' before identifier 'CD3D11_DEFAULT':\Users\8up tuotlo\Desktop\Visual C++ 6.0 Proects\11\Article1\Article1.cpp(28):error C2146:语法错误:标识符'CD3D11_DEFAULT‘前缺少';’当我包括:
#include <d3d9.h>
#include <d3dx9.h>这些都是正常编译的。这是什么东西?
发布于 2012-12-01 17:34:04
检查最新版本的Windows SDK的编译器支持。我怀疑VC++6不再受支持(自从它发布以来已经超过15年了,从那时起已经发布了6个版本)。
https://stackoverflow.com/questions/13658120
复制相似问题