#include extern "C" { void logstr(char const* str) { std::cerr << str << std::endl; } }