Next: , Up: Examples


3.1 Library Initialization

The very first step that should be performed is the initialization of LibTMCG. That can simply be done by calling the function init_libTMCG and evaluating the return code.

     if (!init_libTMCG())
       std::cerr << "Initialization of LibTMCG failed!" << std::endl;
Additionally, in the most cases it is useful to check the installed library version by using the function version_libTMCG.