当前位置: 技术问答>linux和unix
初级问题 gcc编译hello world时出险如下错误 求助
来源: 互联网 发布时间:2015-10-23
本文导语: gcc hello.cpp /tmp/cciBWaTz.o(.text+0x25): In function `main': hello.cpp: undefined reference to `std::cout' /tmp/cciBWaTz.o(.text+0x2a):hello.cpp: undefined reference to `std::basic_ostream& std::operator
gcc hello.cpp
/tmp/cciBWaTz.o(.text+0x25): In function `main':
hello.cpp: undefined reference to `std::cout'
/tmp/cciBWaTz.o(.text+0x2a):hello.cpp: undefined reference to `std::basic_ostream& std::operator
/tmp/cciBWaTz.o(.text+0x25): In function `main':
hello.cpp: undefined reference to `std::cout'
/tmp/cciBWaTz.o(.text+0x2a):hello.cpp: undefined reference to `std::basic_ostream& std::operator