Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

Undefined basic_string

$
0
0

With the latest C++ compiler 2019.5.281, I get a linkage error upon compiling this simple program, 

 

#include <iostream>

int main () {

    std::clog << "C++ version "<< __cplusplus << std::endl;

    return 0;

}

 

> icpc -std=c++11 test.cc

Undefined symbols for architecture x86_64:

  "__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1Emc", referenced from:

      _main in icpcjsInXA.o

ld: symbol(s) not found for architecture x86_64

 

 

Mac OSX 10.14.6

icpc (ICC) 19.0.5.281 20190816

 


Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>