rttrorg / rttr

C++ Reflection Library
https://www.rttr.org
MIT License
3.11k stars 429 forks source link

Build failure | UWP | MSVC #373

Closed golxzn closed 3 months ago

golxzn commented 4 months ago

Hi! The build failure just happens when I compile UWP application. The RTTR library is linking by CMake subdirectory, and the compilation fails with this error:

 C:\proj\lib\rttr\src\rttr\detail\library\library_win.cpp(236,24): error C3861: 'LoadLibraryW': identifier not found [C:\proj\build\ud\lib\rttr\src\rttr\rttr_core_lib.vcxproj]

So, we need to add additional definition around this function to use in UWP