我的具体错误是尝试从此处运行 GDBus 示例代码时:https ://developer.gnome.org/gio/2.30/GDBusConnection.html
错误如下所示:
/usr/bin/ld: main.o: undefined reference to symbol 'g_variant_type_checked_'
//usr/lib64/libglib-2.0.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [GDbus_test] Error 1