Next: , Up: Examples   [Contents][Index]


3.1 Library Initialization

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

if (!init_libTMCG())
  std::cerr << "Initialization of LibTMCG failed!" << std::endl;

Additionally, in most cases it is useful to check the installed version of the library by comparing the desired value with the returned string of the function version_libTMCG.