You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens on line 360 of loader.cpp. The struct gets a proper pointer in memory, and fd "should be OK" (although it's fd=3, which it's a low number, but whatever). The fstat() call at line 343 returned the proper byte length of the file tho.
I'm using msvc v142, and Windows SDK 10.1.19041.1. Building for x64 Debug.
The text was updated successfully, but these errors were encountered:
There is an issue with the linenoise-ng library, which is built with static msvcrt (MT) and doesn't respect the vcpkg build type (static/dynamic)
Static msvcrt means the library effectively has its own copy of file descriptors, which are isolated from efi-dxe-emulator.
I couldn't build this project at all due to this conflict, as Visual Studio notified me about this discrepancy and stopped the build. Changing the emulator flags to use MT rather than MD will bypass the error, but then you run in the assertion you reported.
I therefore made a fork of linenoise-ng and changed CMakeLists to use MD rather than MT. I then instructed vcpkg to use my fork instead of the original.
This happens on line 360 of loader.cpp. The struct gets a proper pointer in memory, and fd "should be OK" (although it's fd=3, which it's a low number, but whatever). The fstat() call at line 343 returned the proper byte length of the file tho.
I'm using msvc v142, and Windows SDK 10.1.19041.1. Building for x64 Debug.
The text was updated successfully, but these errors were encountered: