首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

directx sdk 程序链接有关问题

2012-03-01 
directx sdk 程序链接问题1DXUT.cpp1DXUTsettingsdlg.cpp1正在生成代码...1正在链接...1DXUT.obj : e

directx sdk 程序链接问题
1>DXUT.cpp
1>DXUTsettingsdlg.cpp
1>正在生成代码...
1>正在链接...
1>DXUT.obj : error LNK2019: 无法解析的外部符号"long __stdcall DXUTFindValidDeviceSettings(struct DXUTDeviceSettings *,struct DXUTDeviceSettings *,struct DXUTMatchOptions *)" (?DXUTFindValidDeviceSettings@@YGJPAUDXUTDeviceSettings@@0PAUDXUTMatchOptions@@@Z),该符号在函数"long __stdcall DXUTCreateDevice(bool,int,int)" (?DXUTCreateDevice@@YGJ_NHH@Z) 中被引用
1>DXUTsettingsdlg.obj : error LNK2001: 无法解析的外部符号"long __stdcall DXUTFindValidDeviceSettings(struct DXUTDeviceSettings *,struct DXUTDeviceSettings *,struct DXUTMatchOptions *)" (?DXUTFindValidDeviceSettings@@YGJPAUDXUTDeviceSettings@@0PAUDXUTMatchOptions@@@Z)
1>DXUT.obj : error LNK2019: 无法解析的外部符号"public: class CD3D9EnumAdapterInfo * __thiscall CD3D9Enumeration::GetAdapterInfo(unsigned int)" (?GetAdapterInfo@CD3D9Enumeration@@QAEPAVCD3D9EnumAdapterInfo@@I@Z),该符号在函数"long __cdecl DXUTCreate3DEnvironment9(struct IDirect3DDevice9 *)" (?DXUTCreate3DEnvironment9@@YAJPAUIDirect3DDevice9@@@Z) 中被引用
1>DXUTmisc.obj : error LNK2001: 无法解析的外部符号"public: class CD3D9EnumAdapterInfo * __thiscall CD3D9Enumeration::GetAdapterInfo(unsigned int)" (?GetAdapterInfo@CD3D9Enumeration@@QAEPAVCD3D9EnumAdapterInfo@@I@Z)
1>DXUTsettingsdlg.obj : error LNK2001: 无法解析的外部符号"public: class CD3D9EnumAdapterInfo * __thiscall CD3D9Enumeration::GetAdapterInfo(unsigned int)" (?GetAdapterInfo@CD3D9Enumeration@@QAEPAVCD3D9EnumAdapterInfo@@I@Z)
1>DXUT.obj : error LNK2019: 无法解析的外部符号"class CD3D9Enumeration * __stdcall DXUTGetD3D9Enumeration(bool)" (?DXUTGetD3D9Enumeration@@YGPAVCD3D9Enumeration@@_N@Z),该符号在函数"long __cdecl DXUTCreate3DEnvironment9(struct IDirect3DDevice9 *)" (?DXUTCreate3DEnvironment9@@YAJPAUIDirect3DDevice9@@@Z) 中被引用
1>DXUTmisc.obj : error LNK2001: 无法解析的外部符号"class CD3D9Enumeration * __stdcall DXUTGetD3D9Enumeration(bool)" (?DXUTGetD3D9Enumeration@@YGPAVCD3D9Enumeration@@_N@Z)
1>DXUTsettingsdlg.obj : error LNK2001: 无法解析的外部符号"class CD3D9Enumeration * __stdcall DXUTGetD3D9Enumeration(bool)" (?DXUTGetD3D9Enumeration@@YGPAVCD3D9Enumeration@@_N@Z)
1>DXUT.obj : error LNK2019: 无法解析的外部符号"public: class CD3D9EnumDeviceInfo * __thiscall CD3D9Enumeration::GetDeviceInfo(unsigned int,enum _D3DDEVTYPE)" (?GetDeviceInfo@CD3D9Enumeration@@QAEPAVCD3D9EnumDeviceInfo@@IW4_D3DDEVTYPE@@@Z),该符号在函数"long __cdecl DXUTFindD3D9AdapterFormat(unsigned int,enum _D3DDEVTYPE,enum _D3DFORMAT,int,enum _D3DFORMAT *)" (?DXUTFindD3D9AdapterFormat@@YAJIW4_D3DDEVTYPE@@W4_D3DFORMAT@@HPAW42@@Z) 中被引用
1>DXUTsettingsdlg.obj : error LNK2001: 无法解析的外部符号"public: class CD3D9EnumDeviceInfo * __thiscall CD3D9Enumeration::GetDeviceInfo(unsigned int,enum _D3DDEVTYPE)" (?GetDeviceInfo@CD3D9Enumeration@@QAEPAVCD3D9EnumDeviceInfo@@IW4_D3DDEVTYPE@@@Z)
1>DXUT.obj : error LNK2019: 无法解析的外部符号"public: class CGrowableArray<class CD3D10EnumAdapterInfo *> * __thiscall CD3D10Enumeration::GetAdapterInfoList(void)" (?GetAdapterInfoList@CD3D10Enumeration@@QAEPAV?$CGrowableArray@PAVCD3D10EnumAdapterInfo@@@@XZ),该符号在函数"long __stdcall DXUTSetD3D10Device(struct ID3D10Device *,struct IDXGISwapChain *)" (?DXUTSetD3D10Device@@YGJPAUID3D10Device@@PAUIDXGISwapChain@@@Z) 中被引用
1>DXUTsettingsdlg.obj : error LNK2001: 无法解析的外部符号"public: class CGrowableArray<class CD3D10EnumAdapterInfo *> * __thiscall CD3D10Enumeration::GetAdapterInfoList(void)" (?GetAdapterInfoList@CD3D10Enumeration@@QAEPAV?$CGrowableArray@PAVCD3D10EnumAdapterInfo@@@@XZ)
1>DXUT.obj : error LNK2019: 无法解析的外部符号"class CD3D10Enumeration * __stdcall DXUTGetD3D10Enumeration(bool,bool)" (?DXUTGetD3D10Enumeration@@YGPAVCD3D10Enumeration@@_N0@Z),该符号在函数"long __stdcall DXUTSetD3D10Device(struct ID3D10Device *,struct IDXGISwapChain *)" (?DXUTSetD3D10Device@@YGJPAUID3D10Device@@PAUIDXGISwapChain@@@Z) 中被引用
1>DXUTmisc.obj : error LNK2001: 无法解析的外部符号"class CD3D10Enumeration * __stdcall DXUTGetD3D10Enumeration(bool,bool)" (?DXUTGetD3D10Enumeration@@YGPAVCD3D10Enumeration@@_N0@Z)


1>DXUTsettingsdlg.obj : error LNK2001: 无法解析的外部符号"class CD3D10Enumeration * __stdcall DXUTGetD3D10Enumeration(bool,bool)" (?DXUTGetD3D10Enumeration@@YGPAVCD3D10Enumeration@@_N0@Z)
1>DXUT.obj : error LNK2019: 无法解析的外部符号"public: class CD3D10EnumAdapterInfo * __thiscall CD3D10Enumeration::GetAdapterInfo(unsigned int)" (?GetAdapterInfo@CD3D10Enumeration@@QAEPAVCD3D10EnumAdapterInfo@@I@Z),该符号在函数"long __cdecl DXUTCreate3DEnvironment10(struct ID3D10Device *)" (?DXUTCreate3DEnvironment10@@YAJPAUID3D10Device@@@Z) 中被引用
1>DXUTsettingsdlg.obj : error LNK2001: 无法解析的外部符号"public: class CD3D10EnumAdapterInfo * __thiscall CD3D10Enumeration::GetAdapterInfo(unsigned int)" (?GetAdapterInfo@CD3D10Enumeration@@QAEPAVCD3D10EnumAdapterInfo@@I@Z)
1>DXUT.obj : error LNK2019: 无法解析的外部符号"public: class CD3D10EnumOutputInfo * __thiscall CD3D10Enumeration::GetOutputInfo(unsigned int,unsigned int)" (?GetOutputInfo@CD3D10Enumeration@@QAEPAVCD3D10EnumOutputInfo@@II@Z),该符号在函数"struct HMONITOR__ * __cdecl DXUTGetMonitorFromAdapter(struct DXUTDeviceSettings *)" (?DXUTGetMonitorFromAdapter@@YAPAUHMONITOR__@@PAUDXUTDeviceSettings@@@Z) 中被引用
1>DXUTmisc.obj : error LNK2001: 无法解析的外部符号"public: class CD3D10EnumOutputInfo * __thiscall CD3D10Enumeration::GetOutputInfo(unsigned int,unsigned int)" (?GetOutputInfo@CD3D10Enumeration@@QAEPAVCD3D10EnumOutputInfo@@II@Z)
1>DXUTsettingsdlg.obj : error LNK2001: 无法解析的外部符号"public: class CD3D10EnumOutputInfo * __thiscall CD3D10Enumeration::GetOutputInfo(unsigned int,unsigned int)" (?GetOutputInfo@CD3D10Enumeration@@QAEPAVCD3D10EnumOutputInfo@@II@Z)
1>DXUT.obj : error LNK2019: 无法解析的外部符号"public: class CGrowableArray<class CD3D9EnumAdapterInfo *> * __thiscall CD3D9Enumeration::GetAdapterInfoList(void)" (?GetAdapterInfoList@CD3D9Enumeration@@QAEPAV?$CGrowableArray@PAVCD3D9EnumAdapterInfo@@@@XZ),该符号在函数"long __cdecl DXUTGetAdapterOrdinalFromMonitor(struct HMONITOR__ *,unsigned int *)" (?DXUTGetAdapterOrdinalFromMonitor@@YAJPAUHMONITOR__@@PAI@Z) 中被引用
1>DXUTsettingsdlg.obj : error LNK2001: 无法解析的外部符号"public: class CGrowableArray<class CD3D9EnumAdapterInfo *> * __thiscall CD3D9Enumeration::GetAdapterInfoList(void)" (?GetAdapterInfoList@CD3D9Enumeration@@QAEPAV?$CGrowableArray@PAVCD3D9EnumAdapterInfo@@@@XZ)
1>DXUT.obj : error LNK2019: 无法解析的外部符号"public: struct CD3D10EnumDeviceSettingsCombo * __thiscall CD3D10Enumeration::GetDeviceSettingsCombo(unsigned int,enum D3D10_DRIVER_TYPE,unsigned int,enum DXGI_FORMAT,int)" (?GetDeviceSettingsCombo@CD3D10Enumeration@@QAEPAUCD3D10EnumDeviceSettingsCombo@@IW4D3D10_DRIVER_TYPE@@IW4DXGI_FORMAT@@H@Z),该符号在函数"void __cdecl DXUTUpdateStaticFrameStats(void)" (?DXUTUpdateStaticFrameStats@@YAXXZ) 中被引用
1>DXUTsettingsdlg.obj : error LNK2001: 无法解析的外部符号"public: struct CD3D10EnumDeviceSettingsCombo * __thiscall CD3D10Enumeration::GetDeviceSettingsCombo(unsigned int,enum D3D10_DRIVER_TYPE,unsigned int,enum DXGI_FORMAT,int)" (?GetDeviceSettingsCombo@CD3D10Enumeration@@QAEPAUCD3D10EnumDeviceSettingsCombo@@IW4D3D10_DRIVER_TYPE@@IW4DXGI_FORMAT@@H@Z)
1>DXUT.obj : error LNK2019: 无法解析的外部符号"public: struct CD3D9EnumDeviceSettingsCombo * __thiscall CD3D9Enumeration::GetDeviceSettingsCombo(unsigned int,enum _D3DDEVTYPE,enum _D3DFORMAT,enum _D3DFORMAT,int)" (?GetDeviceSettingsCombo@CD3D9Enumeration@@QAEPAUCD3D9EnumDeviceSettingsCombo@@IW4_D3DDEVTYPE@@W4_D3DFORMAT@@1H@Z),该符号在函数"void __cdecl DXUTUpdateStaticFrameStats(void)" (?DXUTUpdateStaticFrameStats@@YAXXZ) 中被引用
1>DXUTsettingsdlg.obj : error LNK2001: 无法解析的外部符号"public: struct CD3D9EnumDeviceSettingsCombo * __thiscall CD3D9Enumeration::GetDeviceSettingsCombo(unsigned int,enum _D3DDEVTYPE,enum _D3DFORMAT,enum _D3DFORMAT,int)" (?GetDeviceSettingsCombo@CD3D9Enumeration@@QAEPAUCD3D9EnumDeviceSettingsCombo@@IW4_D3DDEVTYPE@@W4_D3DFORMAT@@1H@Z)
1>DXUTsettingsdlg.obj : error LNK2019: 无法解析的外部符号"public: class CD3D10EnumDeviceInfo * __thiscall CD3D10Enumeration::GetDeviceInfo(unsigned int,enum D3D10_DRIVER_TYPE)" (?GetDeviceInfo@CD3D10Enumeration@@QAEPAVCD3D10EnumDeviceInfo@@IW4D3D10_DRIVER_TYPE@@@Z),该符号在函数"protected: class CD3D10EnumDeviceInfo * __thiscall CD3DSettingsDlg::GetCurrentD3D10DeviceInfo(void)" (?GetCurrentD3D10DeviceInfo@CD3DSettingsDlg@@IAEPAVCD3D10EnumDeviceInfo@@XZ) 中被引用


1>DXUTsettingsdlg.obj : error LNK2019: 无法解析的外部符号"long __stdcall DXUTGetD3D10AdapterDisplayMode(unsigned int,unsigned int,struct DXGI_MODE_DESC *)" (?DXUTGetD3D10AdapterDisplayMode@@YGJIIPAUDXGI_MODE_DESC@@@Z),该符号在函数"protected: long __thiscall CD3DSettingsDlg::OnAdapterOutputChanged(void)" (?OnAdapterOutputChanged@CD3DSettingsDlg@@IAEJXZ) 中被引用
1>DXUTsettingsdlg.obj : error LNK2019: 无法解析的外部符号"public: void __thiscall CD3D9Enumeration::GetPossibleVertexProcessingList(bool *,bool *,bool *,bool *)" (?GetPossibleVertexProcessingList@CD3D9Enumeration@@QAEXPA_N000@Z),该符号在函数"protected: long __thiscall CD3DSettingsDlg::OnBackBufferFormatChanged(void)" (?OnBackBufferFormatChanged@CD3DSettingsDlg@@IAEJXZ) 中被引用
14 个无法解析的外部命令

在visual c++ 2008中directX 配置包括文件Program Files\Microsoft DirectX SDK (June 2010)\Samples\C++\DXUT\Core 和 Optional 和Program Files\Microsoft DirectX SDK (June 2010)\Include, 库文件Program Files\Microsoft DirectX SDK (June 2010)\Lib\x86, 编译提示以上链接错误,上述无法解析的外部符号,经查找均出现在directX SDK 自带的DXUT文件中,整个工程内的main.cpp没有调用任何上述外部符号及相关的class和function。哪里出问题?请高手指点。谢谢!


[解决办法]
你是不是没有添加相应的导入库

热点排行