C++疑难杂症
2020-11-08 本文已影响0人
忻恆
- as cout is present in the C++ standard library, which would need explicit linking with -lstdc++ when using gcc.
- g++ links the standard library by default. With gcc, g++ should be preferred over gcc
gcc main.cpp -lstdc++ -o main.o