I follow the way which GTK official site lead me to gtk+ installation
And the example
Finally it compiled successfully with(my source file called gtk.c)
gcc `pkg-config --cflags gtk+-3.0` -o test.exe gtk.c `pkg-config --libs gtk+-3.0`
But the program can only be executed in msys2 shell successfully(show hello world window)
If I click from the explorer, I get an 0xc000007b error code.
Why it cannot be run like a normal program as others?
User contributions licensed under CC BY-SA 3.0