I need to export some functions in my C++ dll to a client that can dynamically load dlls. That all works, but I am not able to stop the name mangling.I have

extern "C" __declspec(dllexport) int __stdcall add( int a, int b );

but the dll exports _add@8 - which I can use of course, but thats not very readable.

Question: why does the extern "C" does not have any effect here?

Thank for your time

Recommended Answers

All 2 Replies

Sure did I read this, and many other articles.

Did you read it too? To my understanding it says one should use 'extern "C"' what my code seems to have.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.