The following simple C++ program hello.cc will not compile on Apple OS 10.14.6 xCode version 11.2 icpc version 19.0.5.281
#include <iostream>
int main(int argc,char **argv)
{
std::cerr << "Hello World\n";
return 0;
}
icpc hello.cc
Undefined symbols for architecture x86_64:
"__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1Emc", referenced from:
_main in icpcRo7DOA.o
ld: symbol(s) not found for architecture x86_64
The load is clearly missing a library. The same routine compiles for Apple g++
/usr/bin/g++ hello.cc
./a.out
Hello World
Where is the missing library and when will this compiler version be fixed?
TCE Level:
TCE Open Date:
Tuesday, November 26, 2019 - 04:30