in reply to Re^2: XS linking problem
in thread XS linking problem
No need to stoop that low! Instead prefix the functions you want to have C linkage with extern "C":
extern "C" void send_string (const wchar_t * str);
If you are forward declaring the function in a header you don't need to provide the extern declaration in the definition. Now you can provide a C API and still have the power of C++ to go forth and conquer the world.
|
|---|