How do I prevent name mangling in C++?
Asked
Active
Viewed 437 times
-2
-
2What exactly is the problem? That looks like mangled symbol names, which is expected behavior of C++. Symbol names must contain not only the function names, but also parameter types etc for overload resolution. That's why they are mangled like this. – walnut Jan 11 '20 at 14:16
-
The problem is that I want to have slightly more readable import/export code on the JS side. Do you know if there is any way to specifically set a symbol name for LLVM/Clang? (Ex. using something like `__attribute__((symbol_name("something")))`) – nonagone Jan 11 '20 at 15:16
-
Found the answer here: [c++ - How can i avoid name mangling?](https://stackoverflow.com/questions/524633/how-can-i-avoid-name-mangling) – nonagone Jan 11 '20 at 15:39