gtk+3.0 compiled with msys2, but cannot run without msys2_shell

0

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?

gtk3
msys
asked on Stack Overflow Mar 15, 2018 by kid

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0