查询在Visual Studio.NET 2005环境中正在运行的现有C程序 [英] Query on running existing C programs in Visual Studio.NET 2005 environment

查看:82
本文介绍了查询在Visual Studio.NET 2005环境中正在运行的现有C程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1>正在链接...
1> CRDEXTR6.obj:错误LNK2001:无法解析的外部符号_dbOpen
1> CRDEXTR6.obj:错误LNK2001:无法解析的外部符号_cri_CustomerNumber
1> CRDEXTR6.obj:错误LNK2001:无法解析的外部符号_getKey
1> CRDEXTR6.obj:错误LNK2001:无法解析的外部符号_startup
1> CRDEXTR6.obj:错误LNK2001:无法解析的外部符号_dbSetIndex
1> CRDEXTR6.obj:错误LNK2001:未解析的外部符号_shutdown
1> CRDEXTR6.obj:错误LNK2001:无法解析的外部符号_extractToDbase
1> CRDEXTR6.obj:错误LNK2001:无法解析的外部符号_dbRead
1> CRDEXTR6.obj:错误LNK2001:无法解析的外部符号_charCompare
1> E:\ New Generated EXEs \ DBFEXTR \ CRDEXTR6 \ CRDEXTR6 \ Release \ CRDEXTR6.exe:致命错误LNK1120:9个无法解析的外部

请在上面找到我们在Visual Studio.NET 2005环境中编译现有C程序时得到的错误消息.

我们尝试了以下选项:
1)工具->选项-> VC ++目录->添加了所有必需的库.
2)在项目属性->链接器->常规->其他库目录->添加了所有必需的库.

其他任何帮助请!!!!!!!!!!!!!!!!!!!!!

哦……我明白了……还是谢谢克里斯蒂安·······················································································································

好吧,您如何向我们解释为什么您认为这些外部符号实际上不应被解析?我们所看到的是一系列错误,这些错误告诉我们您没有正确进行设置.这些方法是在您的代码中还是外部dll中?


克里斯蒂安,

所有这些方法都在各自的头文件中定义.

那就是我提到的,我已经添加了所有必需的库文件.

例如,方法"dbOpen"的声明在BM.H头文件中.

DbFile * dbOpen(const char * fileName,int mode,int recordLength,void * recordBuffer);

谢谢,
Sadheesh


您必须链接所需的库.例如,导出_dbOpen符号的库是什么?您必须对其进行标识,将其添加为链接器输入,并确保其文件夹在VC++目录中列出.
:)


1>Linking...
1>CRDEXTR6.obj : error LNK2001: unresolved external symbol _dbOpen
1>CRDEXTR6.obj : error LNK2001: unresolved external symbol _cri_CustomerNumber
1>CRDEXTR6.obj : error LNK2001: unresolved external symbol _getKey
1>CRDEXTR6.obj : error LNK2001: unresolved external symbol _startup
1>CRDEXTR6.obj : error LNK2001: unresolved external symbol _dbSetIndex
1>CRDEXTR6.obj : error LNK2001: unresolved external symbol _shutdown
1>CRDEXTR6.obj : error LNK2001: unresolved external symbol _extractToDbase
1>CRDEXTR6.obj : error LNK2001: unresolved external symbol _dbRead
1>CRDEXTR6.obj : error LNK2001: unresolved external symbol _charCompare
1>E:\New Generated EXEs\DBFEXTR\CRDEXTR6\CRDEXTR6\Release\CRDEXTR6.exe : fatal error LNK1120: 9 unresolved externals

Pls find above the error messages that we are getting while compiling existing C programs in Visual Studio.NET 2005 environment.

We had tried the below options:
1) Tools -> Options -> VC++ Directories -> Added all the required libraries.
2) In the project properties -> Linker -> General -> Additional Library Directories -> Added all the required libraries.

Any other help pls!!!!!!!!!!!!!!!!!!

Oh...I see...Thanx Christian anyway...your effort for this issue was a tiring one... keep up the good service life long...

解决方案

Well, how about you explain to us why you think that those external symbols should in fact not be unresolved ? All we see is a list of errors that tell us you''ve not set things up properly. Are these methods in your code, or external dlls ?


Hi Christian,

All those methods are defined in the respective header files.

Thats what I had mentioned that I had added all the required library files.

Say for example, the declaration for the method "dbOpen" is in BM.H header file.

DbFile *dbOpen( const char *fileName, int mode, int recordLength, void *recordBuffer);

Thks,
Sadheesh


You must link with the required libraries. For instance, what is the library exporting the _dbOpen symbol? You must identify it, add it as linker input and make sure that its folder is listed in VC++ Directories.
:)


这篇关于查询在Visual Studio.NET 2005环境中正在运行的现有C程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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