Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem while compilation in VC++.

Status
Not open for further replies.

kathyayini

Programmer
Aug 16, 2002
52
IN
I am using SQLAllocHandle(),SQLConnect(),SQLFreeHandle() functions. When i compile the code it gives me the following error at the linking time.What could be the problem.
Linking...
testDlg.obj : error LNK2001: unresolved external symbol _SQLAllocHandle@12
Debug/test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

test.exe - 2 error(s), 0 warning(s)

waiting for the reply
 
i had not used SQL yet. Please see for any libs inclusion in proj settings.
 
It sounds like you don't have the stub library for the DLL's linked in. The libraries are included with the developer's tools for SQL Server. On my system they're in the path:

C:\Program Files\Microsoft SQL Server\80\Tools\DevTools\Lib

Find them on your system, then try adding that to the library search path for your project.

DJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top