Function rcpputils::get_platform_library_name

Function Documentation

std::string rcpputils::get_platform_library_name(std::string library_name, bool debug = false)

Get the platform specific library name.

The maximum file name size is 1024 characters, if the input library_name is bigger than this value then the method throws an exception.

Parameters:
  • library_name[in] library base name (without prefix and extension)

  • debug[in] if true the library will return a debug library name, otherwise it returns a normal library path

Throws:

std::runtime_error – if it’s not able to create the library name

Returns:

platform specific library name