[Edited as inappropriate, for the comment below].
Another approach is to specify export names in a .DEF file .
Your calling and linking arrangements may also affect this. . Honestly, this is a little black art. Use MSVC for a dozen years, and you will still sometimes encounter nasty problems with names that should be easy to fix but not trivial to actually fix, given how different settings interact.
user2189331
source
share