Closed SASUPERNOVA closed 5 years ago
Silly mistake on my part. I had to add the lib file in Linker>>General>>Additional Library Directories instead of Linker>>Input>>Additional Dependencies. After that, attemting to compile gives other linker errors though. I will open a new issue if it doesn't seem to be solvable.
Found out that the above procedure was pointless. All that has to be done was add Dwmapi.lib to Linker>>Input>>Additional Dependencies. Everything works properly now.
No problem. That library is added when you build using cmake
cmake build .
I have exported the library on a Windows machine, but when I try to use it, I get the following error:
Error LNK2019 unresolved external symbol __imp__DwmGetWindowAttribute@16 referenced in function "struct SL::Screen_Capture::WindowDimensions __cdecl SL::Screen_Capture::GetWindowRect(struct HWND__ *)" (?GetWindowRect@Screen_Capture@SL@@YA?AUWindowDimensions@12@PAUHWND__@@@Z)
Steps to reproduce:
cmake CMakeLists.txt
to produce Visual Studio project.