使用DAO时链接错误 [英] linking errors when using DAO

查看:82
本文介绍了使用DAO时链接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用dao时获取链接错误。请给我一些建议。



错误3错误LNK2001:未解析的外部符号public:__thiscall

CdbBSTR :: CdbBSTR(wchar_t *)(?? 0CdbBSTR @@ QAE @ PA_W @ Z)C:\ Planit-Solid \Solid\XDAL \XDAL_Jet.obj XDAL



错误31错误LNK2001:未解析的外部符号public:__thiscall CdbDBEngine :: CdbDBEngine(int,int,wchar_t const *,wchar_t const *,wchar_t const *,long)(?? 0CdbDBEngine @ @ QAE @HHPB_W00J @ Z)C:\ Planit-Solid \Solid\XDAL \XDAL_Jet.obj XDAL



提前致谢

Getting linking errors when iam using dao.Please give me some idea.

Error 3 error LNK2001: unresolved external symbol "public: __thiscall
CdbBSTR::CdbBSTR(wchar_t *)" (??0CdbBSTR@@QAE@PA_W@Z) C:\Planit-Solid\Solid\XDAL\XDAL_Jet.obj XDAL

Error 31 error LNK2001: unresolved external symbol "public: __thiscall CdbDBEngine::CdbDBEngine(int,int,wchar_t const *,wchar_t const *,wchar_t const *,long)" (??0CdbDBEngine@@QAE@HHPB_W00J@Z) C:\Planit-Solid\Solid\XDAL\XDAL_Jet.obj XDAL

Thanks in advance

推荐答案

缺少的函数是非常旧的DAO SDK的一部分,它已随Visual Studio版本4到6一起提供,必须手动安装(来自MSDN 安装MFC数据库支持 [ ^ ]):

The missing functions are part of very old DAO SDKs which has been shipped with Visual Studio versions 4 to 6 and must be installed manually (from MSDN Installing MFC Database Support[^]):
引用:

如果要安装其他DAO SDK组件,例如DAO SDK C ++类,示例文件或DAO帮助文件的Windows帮助版本,从Visual C ++ 6.0 CD-ROM安装DAO SDK。

If you want to install other DAO SDK components, such as the DAO SDK C++ classes, example files, or the Windows Help version of the DAO Help file, install the DAO SDK from the Visual C++ 6.0 CD-ROM.



我的提示:使用MFC CDaoDatabase [ ^ ]和 CDaoRecordset 类而已。


基本上错误 LNK2001:未解析的外部符号...是由链接器引起的。这意味着无法找到功能的定义。



如何解决?

检查参考文献。确保你使用的是正确的库版本。

这个错误通常意味着某个函数有一个声明,但没有定义。添加定义。
Basically the error LNK2001: unresolved external symbol "..." is caused via linker. It means that the definition of function cannot be found.

How to resolve it?
Check references. Make sure you're using proper library version.
This error can often mean that some function has a declaration, but not a definition. Add a definition.


这篇关于使用DAO时链接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆