• libgladeWARNING **: could not find signal handler 'on_exit_clicked'.


    解决方案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说明里的一段原话。

    Note
    If 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.

      

  • 相关阅读:
    同一WpfApplication下简单的页面转换
    触发器
    程序包
    函数
    存储过程
    游标
    我的第一个SolidWorks图
    张量系列(tensor02)
    张量系列-Tensor(01)
    Python与矩阵论——特征值与特征向量
  • 原文地址:https://www.cnblogs.com/niocai/p/2109539.html
Copyright © 2020-2023  润新知