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.