문제

why c++fit in mingw bin's dir can't return right result?

C:\MinGW\bin>c++filt _Z5funcAv
_Z5funcAv

but in CentOS system, the c++filt can return right result.

#c++filt _Z5funcAv
funcA()

how to understand it?

올바른 솔루션이 없습니다

다른 팁

Just came across your question, because I had a similar problem with MinGW32.

What did work for me was using the -n "Do not ignore a leading underscore" option, so I suspect a difference in the default option's settings:

C:\MinGW\bin>c++filt -n _Z5funcAv
funcA()

C:\MinGW\bin>c++filt _Z5funcAv
_Z5funcAv

C:\MinGW\bin>c++filt __Z5funcAv
funcA()

C:\MinGW\bin>c++filt --version
GNU c++filt (GNU Binutils) 2.25.1
Copyright (C) 2014 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top