Compile and link NFD in your programs
masterTo integrate NFD into your C/C++ project, follow these steps:
- Include Path: Add
src/includeto your compiler's include search path. - Library Path: Add the directory containing the built library (e.g.,
build/release/x64) to your library search path. - Linking: Link against
nfd.lib(for release) ornfd_d.lib(for debug).
Platform-specific requirements:
- Linux (GTK3): Install
libgtk-3-dev. When compiling, include the flags frompkg-config --cflags --libs gtk+-3.0. - Linux (Zenity): Use the Zenity backend by running the Makefile in
build/gmake_linux_zenity. This requires Zenity to be installed on the system. - MacOS: Link against the
AppKitframework. - Windows: Ensure you link against
comctl32.lib.