error LNK2019: 无法解析的外部符号 _Direct3DCreate9@4,该符号在函数 "int __cdecl InitD3D(struct HWND__ *,unsigned lo
来源:互联网 发布:测评软件 编辑:程序博客网 时间:2024/06/05 07:45
错误 1 error LNK2019: 无法解析的外部符号 _Direct3DCreate9@4,该符号在函数 "void __cdecl InitD3D(struct HWND__ *)" (?InitD3D@@YAXPAUHWND__@@@Z) 中被引用
解决方法:
在VS.NET中的项目/属性/配置属性/连接器/输入/附加依赖项中添加以下文件名,d3dx9.lib d3dxof.lib d3d9.lib winmm.lib dxguid.lib comctl32.lib 就可以了.
这个问题还有另外一种解决方法,就是在程序的开头写
#pragma comment(lib,"d3d9.lib")
#pragma comment(lib,"winmm.lib")
#pragma comment(lib,"d3dx9.lib")
我自己的情况:
只在依赖库中加入d3d9.lib就OK了
1 0
- error LNK2019: 无法解析的外部符号 _Direct3DCreate9@4,该符号在函数 "int __cdecl InitD3D(struct HWND__ *,unsigned lo
- DirectX的error LNK2019: 无法解析的外部符号 _Direct3DCreate9@4,该符号在函数 "long __cdecl InitD3D(struct HWND__ *)"
- error LNK2019: 无法解析的外部符号 _cvHaarDetectObjects,该符号在函数 "void __cdecl detect_and_draw(struct _IplImage
- error LNK2019: 无法解析的外部符号 _cvHaarDetectObjects,该符号在函数 "void __cdecl detect_and_draw(struct _IplImage
- error LNK2019: 无法解析的外部符号 _gzputs,该符号在函数 "void __cdecl icvPuts(struct CvFileStorage *,char const
- error LNK2019: 无法解析的外部符号 _gzputs,该符号在函数 "void __cdecl icvPuts(struct CvFileStorage *,char const
- error LNK2019: 无法解析的外部符号 WinMain,该符号在函数 "int __cdecl invoke_main(void)”中被引用
- MSVCRTD.lib(exe_main.obj) : error LNK2019: 无法解析的外部符号 _main,该符号在函数 "int __cdecl invoke_main(void)"
- 无法解析的外部符号 _fprintf,该符号在函数 "unsigned int __cdecl gltLoadShaderPai
- error LNK2019: 无法解析的外部符号 _Direct3DCreate9@4
- error LNK2019: 无法解析的外部符号 "void __cdecl QTest::qSleep(int)",该符号在函数 "void __cdecl QTest::qWait(int)"中被
- error LNK2019: 无法解析的外部符号 "int __cdecl wsprintfWInternal
- 1>MSVCRTD.lib(exe_main.obj) : error LNK2019: 无法解析的外部符号 _main,该符号在函数 "int __cdecl invoke_main(void)"
- error LNK2019: 无法解析的外部符号 _mysql_init@4,该符号在函数 "public: void
- dcmdata.lib(dcuid.obj) : error LNK2019: 无法解析的外部符号 _GetAdaptersInfo@8,该符号在函数 "struct _IP_ADAPTER_INFO
- error LNK2019: 无法解析的外部符号 _xMonitorFromWindow@8,该符号在函数 "public: int __thiscall ATL::CWindow::Cent
- C项目如何转C++项目——error LNK2019: 无法解析的外部符号 "unsigned int __cdecl
- 解决错误error LNK2019: 无法解析的外部符号 __imp__函数名,该符号在函数..
- 习题2-5 分数化小数(decimal)
- hadoop学习之hadoop完全分布式集群安装
- javascript设计模式实践之策略模式--输入验证
- Spring MVC(三)基于上一篇使用JUnit编写测试用例
- .net 对象浅拷贝和深拷贝的实现
- error LNK2019: 无法解析的外部符号 _Direct3DCreate9@4,该符号在函数 "int __cdecl InitD3D(struct HWND__ *,unsigned lo
- 【Android】AsyncTask原理应用及源码关键部分解析
- 《剑指Offer》读书笔记05:用两个栈实现队列
- 【Struts2】(3)参数传递
- linux 查看库依赖关系
- MySQL分片
- 如何保证网页的字体在各平台都尽量显示为最高质量的黑体?
- 多个进程间共享动态链接库的原理
- linux 查看库依赖关系