You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sseemayer
Hi,I met a problem when using CCMpred:
(base) czh@X12DAi-N6:~/CCMpred$ make
[ 7%] Building C object lib/libconjugrad/CMakeFiles/conjugrad.dir/src/conjugrad.c.o
In file included from /home/czh/CCMpred/lib/libconjugrad/src/conjugrad.c:4:
/home/czh/CCMpred/lib/libconjugrad/include/conjugrad.h:21:15: error: conflicting types for ‘sqrt’; have ‘float(double)’
21 | #define fsqrt sqrt
| ^~~~
In file included from /usr/include/features.h:486,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/math.h:27,
from /home/czh/CCMpred/lib/libconjugrad/src/conjugrad.c:4:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:143:1: note: previous declaration of ‘sqrt’ with type ‘double(double)’
143 | __MATHCALL (sqrt,, (Mdouble __x));
| ^~~~~~~~~~
make[2]: *** [lib/libconjugrad/CMakeFiles/conjugrad.dir/build.make:76:lib/libconjugrad/CMakeFiles/conjugrad.dir/src/conjugrad.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:129:lib/libconjugrad/CMakeFiles/conjugrad.dir/all] Error 2
make: *** [Makefile:156:all] Error 2
Could you help me?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi, not sure if you still care, but I also stumbled upon this problem. What worked for me was opening the file "include/conjugrad.h" and simply commenting out the offending line by adding // in front of it.
@sseemayer
Hi,I met a problem when using CCMpred:
(base) czh@X12DAi-N6:~/CCMpred$ make
[ 7%] Building C object lib/libconjugrad/CMakeFiles/conjugrad.dir/src/conjugrad.c.o
In file included from /home/czh/CCMpred/lib/libconjugrad/src/conjugrad.c:4:
/home/czh/CCMpred/lib/libconjugrad/include/conjugrad.h:21:15: error: conflicting types for ‘sqrt’; have ‘float(double)’
21 | #define fsqrt sqrt
| ^~~~
In file included from /usr/include/features.h:486,
from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/math.h:27,
from /home/czh/CCMpred/lib/libconjugrad/src/conjugrad.c:4:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:143:1: note: previous declaration of ‘sqrt’ with type ‘double(double)’
143 | __MATHCALL (sqrt,, (Mdouble __x));
| ^~~~~~~~~~
make[2]: *** [lib/libconjugrad/CMakeFiles/conjugrad.dir/build.make:76:lib/libconjugrad/CMakeFiles/conjugrad.dir/src/conjugrad.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:129:lib/libconjugrad/CMakeFiles/conjugrad.dir/all] Error 2
make: *** [Makefile:156:all] Error 2
Could you help me?
Thanks!
The text was updated successfully, but these errors were encountered: