<< Click to Display Table of Contents >> Navigation: Compiler and linker options > Visual C++ |
We support compiled SMILE library for multiple versions of Visual C++. Each zip file in our download repository contains libraries for both x86 (32-bit) and x64 (64-bit) architectures. In addition, for each architecture, we provide three libraries built to use with different versions of Visual C++ runtime environment. For example, SMILE for Visual Studio 2015 includes the following libraries:
•smile_dbg_vc_140x64.lib: debug build for dynamic debug CRT, 64-bit
•smile_dbg_vc_140x86.lib: debug build for dynamic debug CRT, 32-bit
•smile_vc_140x64.lib: release build for static CRT, 64-bit
•smile_vc_140x86.lib: release build for static CRT, 32-bit
•smile_dyn_vc_140x64.lib: release build for dynamic (DLL) CRT, 64-bit
•smile_dyn_vc_140x86.lib: release build for dynamic (DLL) CRT, 32-bit
The number '140' in the list of libraries above corresponds to Microsoft's internal toolkit version, which is 140 for Visual C++ included in the Visual Studio 2015 product.
Only one of these libraries needs to be linked with your executable. The smile.h header contains #pragma directives which automatically select the proper library depending on the selected architecture and current build configuration of your project.
NOTE: due to auto-linking implemented in smile.h, you do not need to add smile*.lib files to the list of libraries in your project’s linker settings. Doing that is likely to cause linker errors.
However, you still need to tell the linker the location of the directory containing SMILE’s .lib files. There are two independent ways to do that:
1.Go to Project Settings | Linker | General and add SMILE directory to ‘Additional Library Directories’, or
2.Go to Project Settings | VC++ Directories and add SMILE directory to ‘Library Directories’.
There are also two independent ways of specifying the SMILE include directory:
1.Go to Project Settings | C++ | General and add SMILE directory to ‘Additional Include Directories’, or
2.Go to Project Settings | VC++ Directories and add SMILE directory to ‘Include Directories’.
Starting with version 1.2.0 released in November 2017, SMILE no longer requires _SECURE_SCL=0 to be defined in pre-processor settings.