Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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...
Posted
Updated 21-Dec-09 23:40pm
v2

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 ?
 
Share this answer
 
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
 
Share this answer
 
v2
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.
:)
 
Share this answer
 
Is there a way to find out which is the library file that contains _dbOpen?

I know it is from a header file called DB.H and included this file in the VC++ Directories.
 
Share this answer
 
Your header files should come with .obj files, which you need to link to.
 
Share this answer
 
Hi all,

Pls find below the settings that I had done. None of them is working.

I am getting the following problem:
"MRGEXTR6.obj : error LNK2001: unresolved external symbol _shutdown"

1) When I did a search, i found "shutdown" as shutdown.obj file.
I added the path of this library file in Linker->General->Additional Library Directories.
But same error.
2) Also I added in Tools -> Options -> VC++ Directories.
But same error.

Is there any other place I had to add the path?
 
Share this answer
 
Any help guys!!!!!!!!!!!

This issue is there for quite a long time!!!!!!!!1
 
Share this answer
 
Please don't keep asking questions by posting answers, it messes up the forums. Edit your post instead. There's really nothing we can add. You need to make sure you are linking to the right obj files, and it's plain that you are not. Nothing more we can tell you, you just need to work through the list, and work out which obj files link to which methods that are missing, and include them.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900