Compilation failure against igraph 1.0.0
rw calculates rank-width and rank-decompositions.
Brought to you by:
spth
Hello,
Compilation aborts after the upgrade of igraph to 1.0.0:
/bin/sh ./libtool --tag=CC --mode=compile cc -DPACKAGE_NAME=\"rw\" -DPACKAGE_TARNAME=\"rw\" -DPACKAGE_VERSION=\"0.9\" -DPACKAGE_STRING=\"rw\ 0.9\" -DPACKAGE_BUGREPORT=\"philipp@informatik.uni-frankfurt.de\" -DPACKAGE_URL=\"\" -DPACKAGE=\"rw\" -DVERSION=\"0.9\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -isystem /usr/local/include --std=c99 -pedantic -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -MT rw.lo -MD -MP -MF .deps/rw.Tpo -c -o rw.lo rw.c
libtool: compile: cc -DPACKAGE_NAME=\"rw\" -DPACKAGE_TARNAME=\"rw\" -DPACKAGE_VERSION=\"0.9\" "-DPACKAGE_STRING=\"rw 0.9\"" -DPACKAGE_BUGREPORT=\"philipp@informatik.uni-frankfurt.de\" -DPACKAGE_URL=\"\" -DPACKAGE=\"rw\" -DVERSION=\"0.9\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -isystem /usr/local/include --std=c99 -pedantic -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -MT rw.lo -MD -MP -MF .deps/rw.Tpo -c rw.c -fPIC -DPIC -o .libs/rw.o
--- rw-simplerw.o ---
simplerw.c:124:70: error: too few arguments to function call, expected 3, have 2
124 | if(igraph_is_directed(&igraph) || igraph_is_simple(&igraph, &isimple) || !isimple)
| ~~~~~~~~~~~~~~~~ ^
/usr/local/include/igraph/igraph_structural.h:56:30: note: 'igraph_is_simple' declared here
56 | IGRAPH_EXPORT igraph_error_t igraph_is_simple(const igraph_t *graph, igraph_bool_t *res, igraph_bool_t directed);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
No surprise: the igraph 1.0 announcement explicitly states that it breaks the API.
I'll have to adapt (possibly checking the igraph version via a preprocessor macro, then calling the appropriate API).
This should be fixed today.