Win32

MSVC

A makefile for MSVC is provided in the win32 directory of the source distribution. Use

nmake /f Makefile.w32 CFG=config

where config is one of:

  • debug-lib - Static library with debugging information. Builds odbc++sd.lib in the debug-lib subdirectory.

  • debug-dll - Shared library with debugging information. Builds odbc++d.lib and odbc++d.dll in the debug-dll subdirectory.

  • prod-lib - Production static library. Builds odbc++s.lib in the prod-lib subdirectory.

  • prod-dll - Production shared library. Builds odbc++.lib and odbc++.dll in the prod-dll subdirectory.

  • unicode-debug-lib - Static library with Unicode and debugging information. Builds odbc++wsd.lib in the unicode-debug-lib subdirectory.

  • unicode-debug-dll - Shared library with Unicode and debugging information. Builds odbc++wd.lib and odbc++wd.dll in the unicode-debug-dll subdirectory.

  • unicode-prod-lib - Production static library with Unicode. Builds odbc++ws.lib in the unicode-prod-lib subdirectory.

  • unicode-prod-dll - Production shared library with Unicode. Builds odbc++w.lib and odbc++w.dll in the unicode-prod-dll subdirectory.

  • qt-debug-lib - Static library with QT and debugging information. Builds odbc++qtsd.lib in the qt-debug-lib subdirectory.

  • qt-debug-dll - Shared library with QT and debugging information. Builds odbc++qtd.lib and odbc++qtd.dll in the qt-debug-dll subdirectory.

  • qt-prod-lib - Production static library with QT. Builds odbc++qts.lib in the qt-prod-lib subdirectory.

  • qt-prod-dll - Production shared library with QT. Builds odbc++qt.lib and odbc++qt.dll in the qt-prod-dll subdirectory.

When building with QT, make sure you have your environment set up right. QTDIR must point to a directory that contains the include and lib subdirectories for QT. The makefile will assume version 202 (2.0.2) of QT. To override that, pass QT_VERSION=nnn to nmake, for example:

nmake /f makefile.w32 CFG=qt-debug-dll QT_VERSION=201

will build libodbc++ against QT version 2.0.1.

The library is always built with multithreading support on win32.