Hi, using the def generated and adding a definition through the CMakefile did it for me. I am sure if you add a define through the mingw64 configuration file it will work