<font color='black' size='2' face='arial'>
<div> <br>
</div>
<div> <font size="2"><br>
Hi Jaymin, <br>
<br>
It looks like you just have a typo there. Use cairo.h instead of cario.h.<br>
<br>
Easy to use pkg-config to bring in the dependencies or to check the dependencies that cairo needs. Test a little sample code to see if it helps out.<br>
<br>
Eric<br>
<br>
<br>
//gcc -Wall cairo1.c -o cairo1 `pkg-config --cflags --libs cairo`<br>
<br>
#include<stdio.h><br>
#include<cairo.h><br>
<br>
int main()<br>
{<br>
double width=600.0;<br>
double height=600.0;<br>
cairo_surface_t *surface=cairo_image_surface_create(CAIRO_FORMAT_ARGB32, width, height);<br>
cairo_t *cr=cairo_create(surface);<br>
<br>
//Paint the green background.<br>
cairo_set_source_rgba(cr, 0.0, 1.0, 0.0, 1.0);<br>
cairo_paint(cr);<br>
<br>
//Draw a blue rectangle.<br>
cairo_set_source_rgba(cr, 0.0, 0.0, 1.0, 1.0);<br>
cairo_translate(cr, width/4.0, height/4.0);<br>
cairo_rectangle(cr, 0.0, 0.0, width/2.0, height/2.0);<br>
cairo_fill(cr);<br>
<br>
printf("Output cairo1.png\n");<br>
cairo_surface_write_to_png(surface, "cairo1.png");<br>
printf("Status %i\n", cairo_status(cr));<br>
<br>
cairo_destroy(cr);<br>
cairo_surface_destroy(surface);<br>
<br>
return 0;<br>
}</font><br>
</div>
<br>
</font>