老外的SDK,自带的例程中用到了std,可是编译时有几个类总是报错:
CyAcquisitionPage.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CyChannel::CyChannel(unsigned short,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_
??0CyChannel@@QAE@GABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
CyAcquisitionPage.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __thiscall CyChannel::GetName(void)const " (__imp_?GetNa
me@CyChannel@@QBEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
CyApp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CyXMLDocument::CyXMLDocument(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??0CyXMLDocument@@Q
AE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
CyDeviceDlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CyXMLDocument::CyXMLDocument(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??0CyXMLDocum
ent@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
CyApp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned long __thiscall CyXMLDocument::CreateDocument(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?Cre
ateDocument@CyXMLDocument@@QAEKABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
CyDeviceDlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __thiscall CyAdapterID::GetIdentifier(void)const " (__imp_?Get
Identifier@CyAdapterID@@QBEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
CyDeviceDlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned long __thiscall CyCameraRegistry::GetName(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)const " (__imp_?G
etName@CyCameraRegistry@@QBEKAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
好像每个都有std参数,大侠帮我看看是怎么回事啊?老外总是说他们那边编译没问题!郁闷死了
CyAcquisitionPage.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CyChannel::CyChannel(unsigned short,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_
??0CyChannel@@QAE@GABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
CyAcquisitionPage.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __thiscall CyChannel::GetName(void)const " (__imp_?GetNa
me@CyChannel@@QBEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
CyApp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CyXMLDocument::CyXMLDocument(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??0CyXMLDocument@@Q
AE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
CyDeviceDlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CyXMLDocument::CyXMLDocument(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??0CyXMLDocum
ent@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
CyApp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned long __thiscall CyXMLDocument::CreateDocument(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?Cre
ateDocument@CyXMLDocument@@QAEKABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
CyDeviceDlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __thiscall CyAdapterID::GetIdentifier(void)const " (__imp_?Get
Identifier@CyAdapterID@@QBEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
CyDeviceDlg.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned long __thiscall CyCameraRegistry::GetName(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)const " (__imp_?G
etName@CyCameraRegistry@@QBEKAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
好像每个都有std参数,大侠帮我看看是怎么回事啊?老外总是说他们那边编译没问题!郁闷死了
解决方案 »
- 软件已经完成,想统计用户量,没有服务器?怎么办?
- 关于用扫描注册表的方法查找串口列表的问题
- Error spawning 'vcspawn.exe'. The build could not be performed
- 请教一个STL的问题
- ADSI 达人请进。
- 请教高手:怎样把编辑框(Edit)做到工具条上?
- asp访问com组件的问题
- 我在我的程序中用了个"DnsQuery"函数,结果在win2000下可以执行,win98下无法执行,请问有什么办法?
- 哪里有潘爱民老师的《COM原理与应用》下载?书店实在没买到.
- 初学vc,请指教(窗体属性设置)
- 建了基于单文档的工程,怎么样使在初始化的时候让一些菜单选项变灰?
- 票订重了。。。北京-〉长沙,2月5号,T29,卧铺两张。。。有人要吗?
实在不知道问题出在哪里了
或者用支持分离模型的编译器
vc6.0是不支持的
去试试 2001 error
必须使用支持分离模型的编译器
我是指STL类的话
注意看下一下
如果是STL对象
是在在你调用时产生实例点
才会找定义[member template Fun也样]
如果你不实例
永远都不会报错