I need to read a graph in GraphML format, I have done the installation of 
Cygwin (containing the Libs and Devel package (containing the libxml2-2.9.2 and 
libz, etc.)), also installed the libiconv library-and the igraph 1:14; I also 
setup CodeBlocks, but when I run the following test code: 
include <stdio.h>#include "igraph.h"#include "igraph_foreign.h"
using namespace std;
int main(){
    igraph_t g;
    FILE *ifile;
    ifile=fopen("graphml-hsa05010.xml", "r");    igraph_read_graph_graphml(&g, 
ifile, 0);    fclose(ifile);    igraph_destroy(&g);
  return 0;
} 
the CodeBlocks issues the following error messages: 
<<< 
||=== Build: Debug in TesteGraphML (compiler: GNU GCC Compiler) 
===|C:\cygwin\usr\local\lib\libigraph.a(libigraph_la-foreign-graphml.o)||In 
function 
`igraph_i_graphml_sax_handler_get_entity':|\cygdrive\c\igraph-0.7.1\src\foreign-graphml.c|255|undefined
 reference to 
`xmlGetPredefinedEntity'|C:\cygwin\usr\local\lib\libigraph.a(libigraph_la-foreign-graphml.o)||In
 function 
`igraph_i_graphml_attribute_data_setup':|\cygdrive\c\igraph-0.7.1\src\foreign-graphml.c|719|undefined
 reference to 
`xmlStrEqual'|\cygdrive\c\igraph-0.7.1\src\foreign-graphml.c|723|undefined 
reference to 
`xmlStrdup'|C:\cygwin\usr\local\lib\libigraph.a(libigraph_la-foreign-graphml.o)||In
 function 
`igraph_i_graphml_add_attribute_key':|\cygdrive\c\igraph-0.7.1\src\foreign-graphml.c|568|undefined
 reference to 
`xmlStrEqual'|\cygdrive\c\igraph-0.7.1\src\foreign-graphml.c|571|undefined 
reference to 
`xmlStrEqual'|\cygdrive\c\igraph-0.7.1\src\foreign-graphml.c|574|undefined 
reference to 
`xmlStrEqual'|\cygdrive\c\igraph-0.7.1\src\foreign-graphml.c|575|undefined 
reference to 
`xmlStrEqual'|\cygdrive\c\igraph-0.7.1\src\foreign-graphml.c|597|undefined 
reference to 
`xmlStrEqual'|C:\cygwin\usr\local\lib\libigraph.a(libigraph_la-foreign-graphml.o):\cygdrive\c\igraph-0.7.1\src\foreign-graphml.c|599|more
 undefined references to `xmlStrEqual' 
follow|C:\cygwin\usr\local\lib\libigraph.a(libigraph_la-foreign-graphml.o)||In 
function 
`igraph_read_graph_graphml':|\cygdrive\c\igraph-0.7.1\src\foreign-graphml.c|1173|undefined
 reference to 
`xmlInitParser'|\cygdrive\c\igraph-0.7.1\src\foreign-graphml.c|1179|undefined 
reference to 
`xmlCreatePushParserCtxt'|\cygdrive\c\igraph-0.7.1\src\foreign-graphml.c|1193|undefined
 reference to 
`xmlParseChunk'|\cygdrive\c\igraph-0.7.1\src\foreign-graphml.c|1196|undefined 
reference to 
`xmlParseChunk'|\cygdrive\c\igraph-0.7.1\src\foreign-graphml.c|1199|undefined 
reference to `xmlFreeParserCtxt'|||=== Build failed: 14 error(s), 0 warning(s) 
(0 minute(s), 2 second(s)) ===| >>> 
Please help me to solve this problem, what should I do? 
Thank you!                                        
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to