Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
7568 Discussions

Simple wstring comparison causes link failure on Windows. VS 2019 16.7 , ICC 19.1 Update 4

AndrewC
New Contributor I
477 Views
#include <string>

int main()
{
std::wstring a(L"abc");
std::wstring b(L"cde");
bool result = a == b;

}

 

error LNK2019: unresolved external symbol wmemcmp

 

This was reported a year ago, and re-reported at each release. It makes <filesystem> pretty useless.

0 Kudos
4 Replies
PrasanthD_intel
Moderator
443 Views

Hi Andrew,


Could you please specify for which version of Visual studio you are getting this issue? You have already mentioned the version as 16.7 but I need the subversion too in format 16.7.x, so I can upgrade to that specific version and check.

I have already tested your code with 2020u4 compiler on VS 16.3 and found no errors.


Regards

Prasanth


PrasanthD_intel
Moderator
407 Views

Hi Andrew,

 

We haven't heard back from you. Please let us know the Visual Studio version you are getting this bug.

I am providing a document for reference to check which Visual Studio version should be used for each Parallel studio version. I have tested the code in Visual Studio 16.7.2, which according to the document is the latest compatible version, and found no errors.

 

https://software.intel.com/content/www/us/en/develop/articles/intel-compilers-compatibility-with-mic...

 

Regards

Prasanth

AndrewC
New Contributor I
350 Views

You are correct the problem appears to be fixed in the latest 19.1 Update

PrasanthD_intel
Moderator
340 Views

Hi Andrew,

Thanks for the confirmation.

We are closing this thread; we will no longer monitor the thread. Please raise a new thread if you have any further queries. any discussion will be considered community only

 

Regards

Prasanth

Reply