#include #include "Lib_stub.h" void log_msg(const std::string &str) { logMsg((HsPtr)str.c_str()); } extern "C" void some_c_wrapper() { log_msg("Hello from C++!"); }