运行galde编写的UI程序时报错:libglade-WARNING **: could not find signal handler 'gtk_reset'.
来源:互联网 发布:短信拦截软件 编辑:程序博客网 时间:2024/04/26 15:22
解决方案1:
在GCC编译命令中加入-export-dynamic,如:
gcc test.c callbacks.c -o test `pkg-config --libs --cflags libglade-2.0 ` -export-dynamic
解决方案2:
在GCC编译命令中使用pkg-config加入库gmodule-export-2.0,如:
gcc test.c callbacks.c -o test `pkg-config --libs --cflags libglade-2.0 gmodule-export-2.0`
问题原因,以下是libglade说明里的一段原话。
NoteIf you wish to autoconnect handlers defined in the main executable (not a shared library), you will need to pass a linker flag to export the executable's symbols for dynamic linking. This flag is platform specific, but libtool can take care of this for you. Just add -export-dynamic argument to your link flags, and libtool will convert it to the correct format.The easiest way to get the correct extra flags is to check for gmodule-export-2.0 with pkg-config.
疑问:为什么?
need to pass a linker flag to export the executable's symbols for dynamic linking
一种回答:
Libglade can also automatically connect signal handlers in the user interface. It does this by matching handler names specified in the glade file with symbols in the executable looked up with the gmodule library (this requires that applications be linked with the --export-dynamic flag).
- 运行galde编写的UI程序时报错:libglade-WARNING **: could not find signal handler 'gtk_reset'.
- gtkglade-WARNING **: could not find signal handler
- GTK+中使用Glade3编程遇到Gtk-WARNING **: Could not find signal handler的问题
- GTK+Glade3 Gtk-WARNING **: Could not find signal handler 问题最终解析
- 运行android程序,Could not find *.apk的解决办法
- 如何解决命令行编译运行Java文件时报错Could not find or load main class ...
- 客户端调用axis2服务端时报的错:Deserializing parameter 'getPersonReturn': could not find deserializer for type {
- 使用PHP连接MySQL时报错could not find driver的解决办法
- WARNING: Could not find jvm.cfg!
- kettle运行时报错 could not create java virtual machine
- kettle运行时报错 could not create java virtual machine
- Cygwin 下编译Jni生成So文件时报错Could not find application project directory的解决办法.
- Gradle 同步时报错,Could not find com.android.support.constraint:constraint-layout:1.0.0-alpha9的解决方法
- 运行安卓报Could not find ****.apk和Failed to load ****dx.jar错的解决办法
- 关于warning:could not find /tmp. please create! 的错误解决
- php【Warning: imageftbbox(): Could not find/open font in……】的问题
- 关于nios ii 中 bash.exe: warning:could not find /tmp. please create! 的错误解决
- warning MSB8003: Could not find WindowsSDKDir variable from the registry的解决办法
- EXT核心API详解(三)-Ext.Element
- vc++ 下载远程图片
- EXT核心API详解(四)-Ext.DomQuery/DomHelper/Template
- Html的空格显示
- EXT核心API详解(五)-Ext.EventManager
- 运行galde编写的UI程序时报错:libglade-WARNING **: could not find signal handler 'gtk_reset'.
- oracle两种复制记录方式
- filenet 一个问答的地方
- 手机平台开发感想
- Qt creator工程项目移植时因环境变换造成qmake错误的解决方案
- 通过命令行执行PHP文件写字符到外部文本 & server端与客户端的当下绝对路径 & PHP的时间设定
- C++ traits编程方法
- Mysql 的 Cascade/Restrict/No action
- CharacterControllerr的碰撞检测