How about this variant? -#include "../../lib/libflac/include/flac/all.h" +#ifndef FLAC__NO_DLL +#include <FLAC/all.h> +#else +#include <flac/all.h> +#endif Cheers, Fabian