samhocevar / portable-file-dialogs

💬 Portable GUI dialogs library, C++11, single-header

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't compile on latest MSVC 2019 Community edition

lakinwecker opened this issue · comments

https://gist.github.com/lakinwecker/c9b1178d0559b4febcd4c5aeaec7a1ab

Something about the windows includes/defines is not working. I'm not versed enough in windows development to understand why. Hoping it's a simple fix.

I tried adding an #include <wingdi.h> before including this library, as some googling suggests that this is where LPLOGFONTA is defined, but it didn't fix it.

I figured it out. I was compiling with -DNOGDI which prevents wingdi.h from being included properly. Closing, as this is not a bug in the library. Sorry for the noise.