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.
In reply to Re^3: XS linking problem
by GrandFather
in thread XS linking problem
by frazap
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |