Gtkmm program compiles fine but crashes - windows XP

别来无恙 提交于 2019-12-06 05:15:39

Now that I see the debug output, I believe your problem is the order of your compile flags. I would try:

g++ -Wall -g `pkg-config --cflags gtkmm-2.4` gtkmm_app2.cpp -o gtkmm_app2 `pkg-config --libs gtkmm-2.4`

The syntax:

`pkg-config gtkmm-2.4 --cflags --libs`

should not be used. It'll compile but not link to the external gtkmm libraries.

Usually you need separate binaries for mingw and msvc. If you use mingw, you should use gtkmm that has been compiled with mingw. mixing compilers doesnt work very well.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!