snap-stanford / snap

Stanford Network Analysis Platform (SNAP) is a general purpose network analysis and graph mining library.
Other
2.16k stars 797 forks source link

Build fails #175

Open jamesrashford opened 5 years ago

jamesrashford commented 5 years ago

make -C snap-core make[1]: Entering directory '/home/james/software/snap/snap-core' g++ -c -std=c++98 -Wall -O3 -DNDEBUG -fopenmp Snap.cpp -I../glib-core In file included from ../glib-core/base.cpp:79:0, from Snap.cpp:6: ../glib-core/bd.cpp: In function 'int _matherr(exception*)': ../glib-core/bd.cpp:14:4: error: invalid use of incomplete type 'struct exception' e->retval=0; ^ ../glib-core/bd.cpp:13:21: note: forward declaration of 'struct __exception' int _matherr(struct __exception* e){ ^ In file included from ../glib-core/base.h:178:0, from Snap.h:9, from Snap.cpp:4: ../glib-core/bd.h: In instantiation of 'void TPt::UnRef() const [with TRec = TNEANet]': ../glib-core/bd.h:480:15: required from 'TPt::~TPt() [with TRec = TNEANet]' network.h:2015:54: required from here ../glib-core/bd.h:472:31: warning: deleting object of polymorphic class type 'TNEANet' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor] if (Addr->CRef.NoRef()){delete Addr;} ^ Makefile:13: recipe for target 'Snap.o' failed make[1]: [Snap.o] Error 1 make[1]: Leaving directory '/home/james/software/snap/snap-core' Makefile:10: recipe for target 'MakeAll' failed make: [MakeAll] Error 2

farzaank commented 5 years ago

This is the same problem as issue #146 and there is a makeshift solution in that thread. This error happens because SNAP does not currently support GLIB versions greater than or equal to 6. We are about to release a new version of SNAP with such support but until then that fix should work! You can also look at my fork of the SNAP repo for another solution.