I would also like to get an answer to this question. I followed the same steps and got the same results. By searching through the files, I found that there are links to gtk_init_api_check in C:\msys64\mingw64\lib\libgtk-3.a and C:\msys64\mingw64\lib\libgtk-3.dll.a , but directly connecting them to the project did not help either.