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’.



About the author: is a dedicated software developer and webmaster. For his day job he develops websites and desktop applications as well as providing IT services. He moonlights as a technical author and consultant.