Community
cancel
Showing results for 
Search instead for 
Did you mean: 
John_G_8
Beginner
97 Views

Static loading failing on Mac

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.

 

0 Kudos
3 Replies
John_G_8
Beginner
97 Views

I get the same error. Under dynamic loading it occurs too. This bug renders the Intel compiler useless on my Apple MacPro. I suspect I won't be renewing the license if it is not fixed. I also suspect it is Xcode related to I can blame both Intel and Apple.

John_G_8
Beginner
97 Views

Guess what. I sent the original message too but I forgot. Since no one is bothering the answer I guess Intel doesn't care if I drop support for their license. Spending $1000 for something that doesn't work doesn't make sense.

Viet_H_Intel
Moderator
97 Views

Would you provide a test case for us to investigate?

Reply