Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7942 Discussions

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

AndrewC
New Contributor III
1,047 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
1,013 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


0 Kudos
PrasanthD_intel
Moderator
977 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-microsoft-visual-studio-and-xcode.html

 

Regards

Prasanth

0 Kudos
AndrewC
New Contributor III
920 Views

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

0 Kudos
PrasanthD_intel
Moderator
910 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

0 Kudos
Reply