What happens when you run the following command? gcc $(pkg-config --cflags igraph) /home/wafa/igraph-0.7.1/examples/simple/dijkstra.c $(pkg-config --libs igraph)
--Bradford On Fri, Apr 17, 2015 at 4:14 AM, Wafa Nafti <[email protected]> wrote: > Hi all, > > I have just install igraph-0.7.1 and I try to test an example (dijkstra.c). > > gcc `pkg-config --cflags --libs igraph` > /home/wafa/igraph-0.7.1/examples/simple/dijkstra.c > > > But I have this error : > > /tmp/ccZjgOrK.o: In function `print_matrix': > dijkstra.c:(.text+0x14): undefined reference to `igraph_matrix_nrow' > dijkstra.c:(.text+0x24): undefined reference to `igraph_matrix_ncol' > /tmp/ccZjgOrK.o: In function `main': > dijkstra.c:(.text+0x28f): undefined reference to `igraph_small' > dijkstra.c:(.text+0x2ad): undefined reference to `igraph_vector_view' > dijkstra.c:(.text+0x2c6): undefined reference to `igraph_matrix_init' > dijkstra.c:(.text+0x2cb): undefined reference to `igraph_vss_all' > dijkstra.c:(.text+0x2d9): undefined reference to `igraph_vss_all' > dijkstra.c:(.text+0x327): undefined reference to > `igraph_shortest_paths_dijkstra' > dijkstra.c:(.text+0x345): undefined reference to `igraph_matrix_destroy' > dijkstra.c:(.text+0x354): undefined reference to `igraph_destroy' > > Can you help me please ? > > Thanks for advance, > Best regards, > ------------------------ > Wafa NAFTI > ENSIT, Tunisie > > _______________________________________________ > igraph-help mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/igraph-help > _______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
