在一个电脑里正常,另一个里编译找不到函数定义?
我使用了glib里面的一个函数,在自己的电脑里面编译正常,换一台就找不到了?
错误信息如下:
/home/yx/Downloads/bio/htqc-0.9.0-Source/ht_tile_filter.cpp: In function ‘int main(int, char**)’:
/home/yx/Downloads/bio/htqc-0.9.0-Source/ht_tile_filter.cpp:145:32: error: ‘g_match_info_unref’ was not declared in this scope
源代码:
#include <set>#include <string>#include <iostream>#include <stdexcept>#include <cstring>#include <cstdlib>#include <cstdio>#include <glib.h>#include <ht_common.h>using namespace std;// 后面没有别的宏了......int main(int argc, char** argv) {...... g_match_info_unref(what);......}
#ifndef __G_LIB_H__#define __G_LIB_H__#define __GLIB_H_INSIDE__......#include <glib/gregex.h>......#undef __GLIB_H_INSIDE__#endif /* __G_LIB_H__ */
#if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)#error "Only <glib.h> can be included directly."#endif#ifndef __G_REGEX_H__#define __G_REGEX_H__......void g_match_info_unref (GMatchInfo *match_info);......#endif /* __G_REGEX_H__ */