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

Static loading failing on Mac

$
0
0

When I try to load static libraries using icpc -std=c++17 I get unresolved symbols from C++. In particular

Undefined symbols for architecture x86_64:
  "__ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE8max_sizeEv"

Can somebody tell me what is really going on here? When I try dynamic loading I get the message

ld: illegal text reloc in '__ZN10BasicUnitsC1EPKc' to '__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1Ev' for architecture x86_64

This constructor uses a const char* as an argument.

 


Viewing all articles
Browse latest Browse all 1175

Trending Articles



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