Hello,
I am facing problems with `igraph_sparsemat() function.

I have tried any combinaton with the following includes but I get
"undefined reference" error during building.

#include <igraph.h>
#include <igraph_sparsemat.h>

Below, I give you a minimal test example
main()
{
igraph_t bic_g;
igraph_sparsemat_t *sparse_g;
igraph_sparsemat(&bic_g, sparse_g, IGRAPH_UNDIRECTED);
}

and trying to build I get
"undefined reference to `igraph_sparsemat(igraph_s*, igraph_sparsemat_t
const*, int)'"

If a add any other function of the igraph library it compiles properly.

The weird thing is that if the arguments are changed, I get the message
"too few arguments" (no undefined message any more)
which means that the compiler recognizes that function.

What goes wrong?

Thanks in advance
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to