View Compiler Mangled Names in C++

后端 未结 6 747
孤城傲影
孤城傲影 2021-01-05 02:24

How do I view the compiler-generated mangled names for overloaded functions in C++? I\'m using VC9 but answers for other compilers are welcome too.

Edit:

6条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-05 02:57

    Since you also ask about other compilers. There is a tool called nm on the gnu toolchain. You will get it on linux and cygwin, and I believe that it is also available in mingw. Calling it with no parameters will show the mangled symbols in the binary. Calling it with --demangle will do the obvious.

提交回复
热议问题