Skip to content

Unable to build in Visual studio 2022! unresolved external symbols (__std_find_last_trivial_2, __std_search_x, __std_find_end_x) #19

@jpup144

Description

@jpup144

When attempting to build the repository, I encounter unresolved external symbol errors related to MSVC STL internal functions.

unresolved external symbol __std_find_last_trivial_2 referenced in function 
"long __cdecl jxy::nt::GetFilePart<class std::basic_string<unsigned short,...>>"

unresolved external symbol __std_find_last_trivial_2
unresolved external symbol __std_search_1 referenced in function 
"char const * __cdecl std::_Search_vectorized<char const,char const>(...)"

unresolved external symbol __std_search_2 referenced in function 
"unsigned short const * __cdecl std::_Search_vectorized<unsigned short const,...>(...)"

unresolved external symbol __std_find_end_1 referenced in function 
"char const * __cdecl std::_Find_end_vectorized<char const,char const>(...)"

unresolved external symbol __std_find_end_2 referenced in function 
"unsigned short const * __cdecl std::_Find_end_vectorized<unsigned short const,...>(...)"

4 unresolved externals

Steps to Reproduce:

  1. Clone the repository
  2. Open the solution in Visual Studio
  3. Build in x64 Release (also occurs in Debug)>

Expected Behavior:
Project should build successfully without unresolved externals.

Environment:

OS: Windows 10
Visual Studio: 2022
Windows SDK: 10.0.26100.0
Platform Toolset: WindowsKernelModeDriver10.0
C++ Standard: ISO C++17 (/std:c++17)
Configuration Type: Driver

Additional Context:

The unresolved symbols (__std_find_last_trivial_2, __std_search_1/2, __std_find_end_1/2) look like they are from newer MSVC STL internals. Could this be due to a required toolset / STL version mismatch?

Please help me to resolve this. I will be very thankful to this amazing community.

Screenshot:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions