C++ 如何阻止英特尔icpc抱怨对基本字符串的未定义引用?

C++ 如何阻止英特尔icpc抱怨对基本字符串的未定义引用?,c++,icc,C++,Icc,我试图在MacOS上使用Intelicpc编译一个非常简单的程序 //文件:test.cpp #包括 #包括 int main(){ std::string s=“hello”; std::看起来您的icpc有问题…以前没有见过此问题…看起来您的icpc有问题…以前没有见过此问题。。。 Undefined symbols for architecture x86_64: "__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorI

我试图在MacOS上使用Intel
icpc
编译一个非常简单的程序

//文件:test.cpp
#包括
#包括
int main(){
std::string s=“hello”;

std::看起来您的icpc有问题…以前没有见过此问题…看起来您的icpc有问题…以前没有见过此问题。。。
Undefined symbols for architecture x86_64:
  "__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1Emc", referenced from:
      _main in icpcDe7qot.o
ld: symbol(s) not found for architecture x86_64
Xcode 11.2.1
Build version 11B500