Can GCC compile C++?

Thành Đạt

New member
Can GCC compile C++?
Answer
GCC recognizes files with these names and compiles them as C++ programs even if you call the compiler the same way as for compiling C programs (usually with the name gcc ). However, the use of gcc does not add the C++ library. g++ is a program that calls GCC and automatically specifies linking against the C++ library.
 

Tìm kiếm

Back
Top