天天看点

/usr/include/glib-2.0/glib/gtypes.h:32:10: fatal error: glibconfig.h: No such file or directory

具体错误:

/usr/include/glib-2.0/glib/gtypes.h:32:10: fatal error: glibconfig.h: No such file or directory
 #include <glibconfig.h>      

这个文件是有的:

cd /usr
find -name glibconfig.h
./lib/sw_64-linux-gnu/glib-2.0/include/glibconfig.h      

解决办法:

在编译选项中,加上-I/usr/lib/sw_64-

linux

-gnu/glib-2.0/include

继续阅读