Don't panic!

 
 

Cry about...
MS-Windows Troubleshooting


error LNK2001: unresolved external symbol _SQLInstallerErrorW@20 or _SQLConfigDataSourceW@16


Symptom:

Microsoft Visual C++ generates the link error:

some.obj : error LNK2001: unresolved external symbol _SQLInstallerErrorW@20

or

some.obj : error LNK2001: unresolved external symbol _SQLConfigDataSourceW@16

Cause:

The application is making use of an ODBC API call, but the necessary library has not been linked in.

Remedy:

Under the project settings, under the ‘Link’ tab, category ‘General’, add ‘odbccp32.lib’ under ‘Object/library modules’.