无法解析的外部符号 RegQueryValueEx、RegCloseKey、RegOpenKeyEx、RegSetValueEx...

1>------ 已启动生成: 项目: WinTest, 配置: Debug Win32 ------
1>生成启动时间为 2011/10/5 12:35:59。
1>InitializeBuildStatus:
1>  正在对“Debug\WinTest.unsuccessfulbuild”执行 Touch 任务。
1>ClCompile:
1>  所有输出均为最新。
1>ResourceCompile:
1>  所有输出均为最新。
1>ManifestResourceCompile:
1>  所有输出均为最新。
1>d3dUtility.obj : error LNK2005: "long __stdcall d3d::WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@d3d@@YGJPAUHWND__@@IIJ@Z) 已经在 cfont.obj 中定义
1>cfont.obj : error LNK2019: 无法解析的外部符号 "bool __cdecl d3d::InitD3D(struct HINSTANCE__ *,int,int,bool,enum _D3DDEVTYPE,struct IDirect3DDevice9 * *)" (?InitD3D@d3d@@YA_NPAUHINSTANCE__@@HH_NW4_D3DDEVTYPE@@PAPAUIDirect3DDevice9@@@Z),该符号在函数 _WinMain@16 中被引用
1>dxutil.obj : error LNK2019: 无法解析的外部符号 __imp__RegCloseKey@4,该符号在函数 "long __cdecl DXUtil_GetDXSDKMediaPathCch(wchar_t *,int)" (?DXUtil_GetDXSDKMediaPathCch@@YAJPA_WH@Z) 中被引用
1>dxutil.obj : error LNK2019: 无法解析的外部符号 __imp__RegQueryValueExW@24,该符号在函数 "long __cdecl DXUtil_GetDXSDKMediaPathCch(wchar_t *,int)" (?DXUtil_GetDXSDKMediaPathCch@@YAJPA_WH@Z) 中被引用
1>dxutil.obj : error LNK2019: 无法解析的外部符号 __imp__RegOpenKeyExW@20,该符号在函数 "long __cdecl DXUtil_GetDXSDKMediaPathCch(wchar_t *,int)" (?DXUtil_GetDXSDKMediaPathCch@@YAJPA_WH@Z) 中被引用
1>dxutil.obj : error LNK2019: 无法解析的外部符号 __imp__RegSetValueExW@24,该符号在函数 "long __cdecl DXUtil_WriteStringRegKey(struct HKEY__ *,wchar_t *,wchar_t *)" (?DXUtil_WriteStringRegKey@@YAJPAUHKEY__@@PA_W1@Z) 中被引用
1>E:\Visual Studio 2010\Projects\WinTest\Debug\WinTest.exe : fatal error LNK1120: 5 个无法解析的外部命令
1>
1>生成失败。
1>
1>已用时间 00:00:01.19
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========


solution:未包含AdvAPI32.lib

1>d3dUtility.obj : error LNK2005: "long __stdcall d3d::WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@d3d@@YGJPAUHWND__@@IIJ@Z) 已经在 cfont.obj 中定义
1>cfont.obj : error LNK2019: 无法解析的外部符号 "bool __cdecl d3d::InitD3D(struct HINSTANCE__ *,int,int,bool,enum _D3DDEVTYPE,struct IDirect3DDevice9 * *)" (?InitD3D@d3d@@YA_NPAUHINSTANCE__@@HH_NW4_D3DDEVTYPE@@PAPAUIDirect3DDevice9@@@Z),该符号在函数 _WinMain@16 中被引用
这两个错误有点莫名其妙:将问题函数声明重新敲一遍...不能复制的

posted on 2011-10-05 13:21 メmarsメ 阅读(2557) 评论(0)  编辑 收藏 引用 所属分类: 点滴积累


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


<2011年10月>
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

导航

统计

常用链接

留言簿

随笔分类

随笔档案

文章分类

文章档案

搜索

最新评论

阅读排行榜

评论排行榜