MiroKaku / ucxxrt

The Universal C++ RunTime library, supporting kernel-mode C++ exception-handler and STL.
MIT License
399 stars 97 forks source link

[BUG] Link error after installing with NuGet #18

Closed git-eternal closed 2 years ago

git-eternal commented 2 years ago

Installed the package with NuGet, tried doing a basic std::string print, and try/catch. I get unresolved symbol errors when I compile

image

MiroKaku commented 2 years ago

I need the detailed version number.

Visual Studio: SDK: WDK:

git-eternal commented 2 years ago

Visual Studio: 2019 Community Edition SDK:
image WDK: Windows 2004 WDK (https://go.microsoft.com/fwlink/?linkid=2128854)

MiroKaku commented 2 years ago

VS2019 and VS2022 conflict on my computer. Please try to compile ucxxrt yourself. There may be an inconsistency in the lib of the WDK.

MiroKaku commented 2 years ago

I tested with no errors.

VS2019: 16.11.20 SDK/WDK: 10.0.19041.685 (show 10.0.19041.0)

build log:

  **************************************************
  *         Universal C++ RunTime (UCXXRT)         *
  **************************************************

  UCXXRT Path      : E:\My\Desktop\MyDriver\packages\ucxxrt.3.0.2\lib\native\
  Platform         : x86
  Configuration    : Debug
  Tools Version    : 14.29.30133
  Platform Version : 10.0.19041.0
  Kernel Mode      : true
Building 'MyDriver' with toolset 'WindowsKernelModeDriver10.0' and the 'Desktop' target platform.
Stamping Debug\MyDriver.inf
Stamping [Version] section with DriverVer=11/02/2022,16.53.13.712
main.cpp
MyDriver.vcxproj -> E:\My\Desktop\MyDriver\Debug\MyDriver.sys

  **************************************************
  *         Universal C++ RunTime (UCXXRT)         *
  **************************************************

  UCXXRT Path      : E:\My\Desktop\MyDriver\packages\ucxxrt.3.0.2\lib\native\
  Platform         : x64
  Configuration    : Debug
  Tools Version    : 14.29.30133
  Platform Version : 10.0.19041.0
  Kernel Mode      : true
Building 'MyDriver' with toolset 'WindowsKernelModeDriver10.0' and the 'Desktop' target platform.
Stamping x64\Debug\MyDriver.inf
Stamping [Version] section with DriverVer=11/02/2022,16.53.16.726
MyDriver.vcxproj -> E:\My\Desktop\MyDriver\x64\Debug\MyDriver.sys

  **************************************************
  *         Universal C++ RunTime (UCXXRT)         *
  **************************************************

  UCXXRT Path      : E:\My\Desktop\MyDriver\packages\ucxxrt.3.0.2\lib\native\
  Platform         : x86
  Configuration    : Release
  Tools Version    : 14.29.30133
  Platform Version : 10.0.19041.0
  Kernel Mode      : true
Building 'MyDriver' with toolset 'WindowsKernelModeDriver10.0' and the 'Desktop' target platform.
Stamping Release\MyDriver.inf
Stamping [Version] section with DriverVer=11/02/2022,16.53.17.590
main.cpp
MyDriver.vcxproj -> E:\My\Desktop\MyDriver\Release\MyDriver.sys

  **************************************************
  *         Universal C++ RunTime (UCXXRT)         *
  **************************************************

  UCXXRT Path      : E:\My\Desktop\MyDriver\packages\ucxxrt.3.0.2\lib\native\
  Platform         : x64
  Configuration    : Release
  Tools Version    : 14.29.30133
  Platform Version : 10.0.19041.0
  Kernel Mode      : true
Building 'MyDriver' with toolset 'WindowsKernelModeDriver10.0' and the 'Desktop' target platform.
Stamping x64\Release\MyDriver.inf
Stamping [Version] section with DriverVer=11/02/2022,16.53.20.472
MyDriver.vcxproj -> E:\My\Desktop\MyDriver\x64\Release\MyDriver.sys