Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSVC function name mangling [duplicate]

In Linux, the GCC compiler does not add the return type to the mangled name of a function, not causing an ABI incompatibility error in cases that a major version changes. Because of this, I usually use a abi_tag in a inline namespace depending on the major version to force this kind of behavior.

How MSVC2017 mangle function names in Windows? I need to add something similar to abi_tag in the inline namespace to replicate this behavior?

like image 531
LionsWrath Avatar asked Jul 16 '26 16:07

LionsWrath


1 Answers

MSVC mangled names include the return type. See Visual C++ name mangling for gory details.

like image 153
md5i Avatar answered Jul 19 '26 06:07

md5i