I have a DLL that is written in C++ and I want to suppress the name mangling for a few exported methods. The methods are global and are not members of any class. Is there a way to achieve this?
BTW: I'm using VS2008.
Surround the function definitions with extern "C" {}
extern "C" {
void foo() {}
}
See http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With