Hello, I am just a beginner to igraph, I want to use it with C. I have installed it with C package. Now when I am trying to run any of examples given within package using instructions at http://igraph.sourceforge.net/doc/html/ch03s01.html, but it gives errors as follows
address@hidden:~/igraph-0.6.5/examples/simple$ gcc cattributes.c -I/usr/local/include/igragh -L/usr/local/lib -ligraph -o cattributes
cattributes.c:24:20: error: igraph.h: No such file or directory
cattributes.c:28: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
cattributes.c: In function ‘main’:
cattributes.c:153: error:
‘igraph_t’ undeclared (first use in this function)
cattributes.c:153: error: (Each undeclared identifier is reported only once
cattributes.c:153: error: for each function it appears in.)
cattributes.c:153: error: expected ‘;’ before ‘g’
cattributes.c:154: error: ‘FILE’ undeclared (first use in this function)
cattributes.c:154: error: ‘ifile’ undeclared (first use in this function)
cattributes.c:155: error: ‘igraph_vector_t’ undeclared (first use in this function)
cattributes.c:155: error: expected ‘;’ before ‘gtypes’
cattributes.c:156: error: ‘igraph_strvector_t’ undeclared (first use in this function)
cattributes.c:156: error: expected ‘;’ before ‘gnames’
cattributes.c:158: error: expected ‘;’ before ‘y’
cattributes.c:159: error: expected ‘;’ before ‘id’
cattributes.c:163: error: ‘igraph_cattribute_table’ undeclared (first use in this
function)
cattributes.c:169: error: ‘g’ undeclared (first use in this function)
cattributes.c:172: error: ‘gtypes’ undeclared (first use in this function)
cattributes.c:173: error: ‘vtypes’ undeclared (first use in this function)
cattributes.c:174: error: ‘etypes’ undeclared (first use in this function)
cattributes.c:175: error: ‘gnames’ undeclared (first use in this function)
cattributes.c:176: error: ‘vnames’ undeclared (first use in this function)
cattributes.c:177: error: ‘enames’ undeclared (first use in this function)
cattributes.c:183: warning: incompatible implicit declaration of built-in function ‘printf’
cattributes.c:202: error: ‘g2’ undeclared (first use in this function)
cattributes.c:294: error: ‘y’ undeclared (first use in this function)
cattributes.c:312: error: ‘id’ undeclared (first use in this function)
cattributes.c:314: warning: incompatible implicit
declaration of built-in function ‘snprintf’
cattributes.c:325: warning: incompatible implicit declaration of built-in function ‘snprintf’
cattributes.c:356: warning: incompatible implicit declaration of built-in function ‘snprintf’
cattributes.c:367: warning: incompatible implicit declaration of built-in function ‘snprintf’
address@hidden:~/igraph-0.6.5/examples/simple$
Please let me know where am i making a mistake.
Best Regards,