superlu
superlu copied to clipboard
matlab mex error
root@ubuntu:~/superlu-6.0.0/MATLAB# make
/root/linux_matlab/matlab2018a/bin/mex -I../SRC -I/root/linux_matlab/matlab2018a/extern/include -O -DV5 mexlusolve.c
/root/superlu-6.0.0/lib/libsuperlu_5.1.a /root/superlu-6.0.0/lib/libblas.a -lm
Building with 'gcc'.
Warning: You are using gcc version '9.4.0'. The version of gcc is not supported. The version currently supported with MEX is '6.3.x'. For a list of currently supported compilers see: https://www.mathworks.com/support/compilers/current_release.
/usr/bin/ld: /tmp/mex_2524317599749166_1754387/mexlusolve.o: in function mexFunction': mexlusolve.c:(.text+0x277): undefined reference to
dCreate_CompCol_Matrix'
/usr/bin/ld: mexlusolve.c:(.text+0x2a4): undefined reference to dCopy_Dense_Matrix' /usr/bin/ld: mexlusolve.c:(.text+0x2c6): undefined reference to
dCreate_Dense_Matrix'
/usr/bin/ld: mexlusolve.c:(.text+0x344): undefined reference to dgssv' /usr/bin/ld: /root/superlu-6.0.0/lib/libsuperlu_5.1.a(util.o): relocation R_X86_64_PC32 against symbol
stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make: *** [Makefile:12: mexlusolve] Error 255