[Gegl-developer] error: 'GeglOp' undeclared
Florent Monnier
fmonnier at linux-nantes.fr.eu.org
Mon Jan 9 11:50:42 PST 2006
> pkg-config --cflags gegl
> will give you the compilation flags.
>
> pkg-config --libs gegl
> will give you the linker flags.
gcc -o test-01 `pkg-config --libs gegl` `pkg-config --cflags gegl` test-01.c
Here is the error I get:
test-01.c: In function 'main':
test-01.c:11: error: 'GeglOp' undeclared (first use in this function)
test-01.c:11: error: (Each undeclared identifier is reported only once
test-01.c:11: error: for each function it appears in.)
test-01.c:11: error: 'color0' undeclared (first use in this function)
test-01.c:12: error: 'color1' undeclared (first use in this function)
test-01.c:13: error: 'iadd' undeclared (first use in this function)
test-01.c:15: error: 'GEGL_TYPE_COLOR' undeclared (first use in this function)
test-01.c:23: error: 'GEGL_TYPE_I_ADD' undeclared (first use in this function)
Here the exemple 'test-01.c' I'm trying to compile:
--
#include "gegl.h"
/* Set up to add two constant color images.
(.6,.8,1.0) = (.1,.2,.3) + (.5,.6,.7) */
int main(void)
{
GeglOp *color0;
GeglOp *color1;
GeglOp *iadd;
color0 = g_object_new (GEGL_TYPE_COLOR,
"pixel-rgb-float", .1, .2, .3,
NULL);
color1 = g_object_new (GEGL_TYPE_COLOR,
"pixel-rgb-float", .5, .6, .7,
NULL);
iadd = g_object_new (GEGL_TYPE_I_ADD,
"source-0", color0,
"source-1", color1,
NULL);
}
____
More information about the Gegl-developer
mailing list