Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Static loading failing on Mac

John_G_8
Beginner
241 Views

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
241 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
241 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
241 Views

Would you provide a test case for us to investigate?

Reply