Alloyed / nativefiledialog

A tiny, neat C library that portably invokes native file open and save dialogs.
zlib License
15 stars 3 forks source link

Build on Windows #3

Closed pablomayobre closed 7 years ago

pablomayobre commented 8 years ago

Run msvcbuild.bat from the Developer Command Prompt in order to build on Windows

Tested on Windows 10 VS2015 Community Edition

Provisory fix for #2 but a Makefile may be better and LuaRocks support would be great. Even then you can get the basic idea from this bat file

A good alternative to this build script would be a Makefile.win that uses Nmake. Adding this to LuaRocks would be straightforward too

pablomayobre commented 8 years ago

Most warnings you found were because NFD must be compiled with CRT_SECURE_NO_WARNINGS which I put in the msvcbuild.bat file under NFD_CFLAGS.

Another warning were the open paths for the open, openMany and save functions which don't provide a default case in their switch. Even if this is not needed I added it so that the compiler won't complain.

Great work on this, I was gonna do the same thing for this library but I found you had already done it so thank you really much!