Main header file

<< Click to Display Table of Contents >>

Navigation:  Using SMILE >

Main header file

To use SMILE, you need to include single header file, namely smile.h. As described earlier, with Visual C++ this file also takes care of specifying the correct variant of the library (debug vs. release with static CRT vs. release with CRT in DLL).

For new SMILE-based projects, we recommend adding #define SMILE_NO_V1_COMPATIBILITY before #include "smile.h". This will disable SMILE 1.x compatibility features and can make IDE features like autocomplete work better with SMILE. For more information about SMILE 2 backward compatibility refer to the What's new in SMILE 2 section.

The second required header, usually named smile_license.h contains your licensing information. You need to include this file in exactly one of your .cpp files. See the Licensing section for more details, including information on how to obtain evaluation or academic license from our website.