Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Cコードでできること
gcc -Wl,-y,printf main.c
これは覚えるのが非常に簡単です。C++ コードを使用した g++ では、
g++ -Wl,-y,std::cout main.cpp
、C++コードには他のオプションがありますか?
nm -opr を使用してシンボル名を調べ、必要なものを決定します。
(この回答の元のバージョンでは、c++filt を提案することで、望ましい回答とは逆の結果が得られました)。