Comments (4)
I added that flag but I still get the same error:
multithread:
$(CC) -g $(CFLAGS) mmglm_spd_multithread.cpp -o ../bin/mmglm_spd_par -fopenmp -lquadmath -O3 $(LIB_PATH) $(INC_PATH)'
error is:
jalal@klein:~/computer_vision/mmglm_neuroimage_private-master/lib/c++/src$ make
g++ -g -Wall -Wextra -Wunreachable-code -static mmglm_spd_multithread.cpp -o ../bin/mmglm_spd_par -fopenmp -lquadmath -O3 -llapack -lblas -lpthread -lgfortran -lboost_system -lboost_filesystem -I ../lib/armadillo-3.930.2/include/
mmglm_spd_multithread.cpp: In function ‘int main(int, char**)’:
mmglm_spd_multithread.cpp:117:10: warning: unused variable ‘length’ [-Wunused-variable]
size_t length=0;//initializing length as a counter
^
/usr/lib/gcc/x86_64-linux-gnu/5/libgomp.a(target.o): In function `gomp_target_init':
(.text+0xba): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-linux-gnu/5/libgfortran.a(write.o): In function `write_float':
(.text.write_float+0xb2): undefined reference to `signbitq'
/usr/lib/gcc/x86_64-linux-gnu/5/libgfortran.a(write.o): In function `write_float':
(.text.write_float+0xbf): undefined reference to `finiteq'
/usr/lib/gcc/x86_64-linux-gnu/5/libgfortran.a(write.o): In function `write_float':
(.text.write_float+0x133): undefined reference to `quadmath_snprintf'
/usr/lib/gcc/x86_64-linux-gnu/5/libgfortran.a(write.o): In function `write_float':
(.text.write_float+0x254): undefined reference to `finiteq'
/usr/lib/gcc/x86_64-linux-gnu/5/libgfortran.a(write.o): In function `write_float':
(.text.write_float+0xaff): undefined reference to `isnanq'
/usr/lib/gcc/x86_64-linux-gnu/5/libgfortran.a(write.o): In function `write_float':
(.text.write_float+0xb83): undefined reference to `quadmath_snprintf'
/usr/lib/gcc/x86_64-linux-gnu/5/libgfortran.a(write.o): In function `write_float':
(.text.write_float+0xf7d): undefined reference to `quadmath_snprintf'
/usr/lib/gcc/x86_64-linux-gnu/5/libgfortran.a(write.o): In function `write_float':
(.text.write_float+0x10d8): undefined reference to `quadmath_snprintf'
collect2: error: ld returned 1 exit status
Makefile:13: recipe for target 'multithread' failed
make: *** [multithread] Error 1
from arpackpp.
Try adding -lquadmath after $(LIB_PATH), could be a problem of ordering.
from arpackpp.
@m-reuter dear professor Reuter, I solved it like this http://stackoverflow.com/questions/39730418/text-write-float0xf7d-undefined-reference-to-quadmath-snprintf
from arpackpp.
@xichuang Here we can simply move this
find_library(QUADMATH_LIB quadmath PATHS ${GFORTRAN_PATH})
a few lines up, outside the IF (APPLE) block. That should fix it, let me know and I can make that change (or generate a pull request). I currently don't have Ubuntu 16.04 to test this.
from arpackpp.
Related Issues (20)
- Wrong method signatures HOT 1
- Wrong eigenvalues with UMFpack HOT 5
- compiling on windows HOT 1
- Installing with dynamic gfortran library HOT 8
- Valgrind Error from ARrcStdEig::FindEigenvalues
- Access Violation exception HOT 1
- Error with multiple threads HOT 2
- install-superlu.sh download link fix
- Question about the arpackpp HOT 1
- Integer overflow HOT 4
- Is it possible to use `gemv` from BLAS directly on `ARdsNonSymMatrix`? HOT 2
- How to use `ARSymStdEig` in the shift-invert mode? HOT 2
- Generalised eigenvalue problem with shift-inverse mode using UMFPACK HOT 2
- Plans to make a release? HOT 2
- Update the ARPACK++ documentation HOT 3
- Error while using ARNonSymStdEig HOT 2
- Duplicate symbols when linking two objects including arsnsym.h HOT 2
- superlu 5.0 should set $BLAS HOT 1
- Posible memory leak? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arpackpp.