glibconfig.h no hay tal archivo o directorio
Acabo de instalar glib en Raspbian(versión Debian). Quiero leer un archivo de configuración usando glib. Estoy tratando de escribir una aplicación C en Codeblocks y uso el encabezado
#include <glib.h>
Pero tengo un error en gtypes.h
fatal error:glibconfig.h No such file or directory
Usé este camino
project->Build Options->Compiler Settings->Other Options
Y añadí
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
, Como he leído en este tutorial. Tengo que declarar también
-L/usr/lib -lm -lglib-2.0
Como dice el tutorial y si es así, ¿dónde y cómo puedo declararlo en Codeblocks?
32
1 answers
Use pkg-config
.
gcc `pkg-config --cflags glib-2.0` foo.c `pkg-config --libs glib-2.0`
56
Author: mattn,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-06-28 08:46:32
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-06-28 08:46:32