For whatever reason, building under MXE (for windows) causes FLAC to try to use dll import references, but setting FLAC__NO_DLL before including FLAC/export.h fixes the issue.