-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I am trying to compile rseg (gcc (Debian 6.1.1-11) 6.1.1 20160802), but I am getting compilation problems in the GSL code:
gcc -Wall -fPIC -c -o ../gsl/math.o ../gsl/math.c -I../smithlab_cpp -I../common -I../gsl -I../samtools
../gsl/math.c:56:1: error: redefinition of ‘gsl_complex_rect’
gsl_complex_rect (double x, double y)
^~~~~~~~~~~~~~~~
In file included from ../gsl/math.c:48:0:
../gsl/gsl_complex_math.h:43:1: note: previous definition of ‘gsl_complex_rect’ was here
gsl_complex_rect (double x, double y)
^~~~~~~~~~~~~~~~
Makefile:109: recipe for target '../gsl/math.o' failed
make[2]: *** [../gsl/math.o] Error 1
The problem seems to be how inline functions are treated in the header and the code. I tried adding -std=c99 and -DGSL_C99_INLINE to CFLAGS in the Makefiles, but neither helped.
I also tried an older version of the compiler (gcc-5 (Debian 5.4.1-1) 5.4.1 20160803), again with the same error. The problem does not seem to be distro-related as I am getting these errors under Arch Linux too.
Any idea how to tackle that?
Metadata
Metadata
Assignees
Labels
No labels