igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Cannot install iGraph (0.6.5) C library on Mac OSX 10.8.3


From: Gábor Csárdi
Subject: Re: [igraph] Cannot install iGraph (0.6.5) C library on Mac OSX 10.8.3
Date: Wed, 17 Apr 2013 14:00:01 -0400

Please stay on the list. Thanks. More below.

On Wed, Apr 17, 2013 at 1:05 PM, fernando martinez <address@hidden> wrote:
So I fixed the gcc issue. Symlinks.

Now when I run make i get this:

make  all-recursive
Making all in src
make  all-am
/bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/g++ -DHAVE_CONFIG_H -I. -I..   -g -O2 -I/usr/include/libxml2 -I../include -I../include -Wall -I../optional/glpk -g -O2 -I/usr/include/libxml2 -MT libigraph_la-games.lo -MD -MP -MF .deps/libigraph_la-games.Tpo -c -o libigraph_la-games.lo `test -f 'games.c' || echo './'`games.c
libtool: compile:  /usr/bin/g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -I/usr/include/libxml2 -I../include -I../include -Wall -I../optional/glpk -g -O2 -I/usr/include/libxml2 -MT libigraph_la-games.lo -MD -MP -MF .deps/libigraph_la-games.Tpo -c games.c  -fno-common -DPIC -o .libs/libigraph_la-games.o

games.c is c, not c++, so I guess you set up your symlinks wrong, and the c compiler points to a c++ compiler. Or using configure with some wrong options to use a c++ compiler for c files. Or something similar.

G.
 
games.c: In function 'int igraph_preference_game(igraph_t*, igraph_integer_t, igraph_integer_t, const igraph_vector_t*, igraph_bool_t, const igraph_matrix_t*, igraph_vector_t*, igraph_bool_t, igraph_bool_t)':
games.c:2207: error: invalid conversion from 'void*' to 'igraph_vector_t*'
games.c:2207: error:   initializing argument 1 of 'int igraph_vector_init(igraph_vector_t*, long int)'
games.c:2246: error: invalid conversion from 'void*' to 'igraph_vector_t*'
games.c:2256: error: invalid conversion from 'void*' to 'igraph_vector_t*'
games.c: In function 'int igraph_asymmetric_preference_game(igraph_t*, igraph_integer_t, igraph_integer_t, igraph_matrix_t*, igraph_matrix_t*, igraph_vector_t*, igraph_vector_t*, igraph_bool_t)':
games.c:2471: error: invalid conversion from 'void*' to 'igraph_vector_t*'
games.c:2471: error:   initializing argument 1 of 'int igraph_vector_init(igraph_vector_t*, long int)'
games.c:2472: error: invalid conversion from 'void*' to 'igraph_vector_t*'
games.c:2472: error:   initializing argument 1 of 'int igraph_vector_init(igraph_vector_t*, long int)'
games.c: In function 'int igraph_rewire_edges(igraph_t*, igraph_real_t, igraph_bool_t, igraph_bool_t)':
games.c:2843: warning: operation on 'igraph_i_ret' may be undefined
make[3]: *** [libigraph_la-games.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I have not touched the code so I do not understand why I am getting compilation errors.





--
Gabor Csardi <address@hidden>     MTA KFKI RMKI

reply via email to

[Prev in Thread] Current Thread [Next in Thread]