Closed antonio-rojas closed 6 years ago
I'm still getting errors with "make distcheck" and should fix these too and make a new release (with no actual code changes). But I don't know how to fix it and would appreciate help from anyone out there:
/bin/bash ../libtool --tag=CXX --mode=link g++ -std=gnu++11 -g -O2 -lpthread -o solve_conic solve_conic.o ../libsrc/libec.la -lpari -lntl
libtool: link: g++ -std=gnu++11 -g -O2 -o .libs/solve_conic solve_conic.o -lpthread ../libsrc/.libs/libec.so -lpari -lntl -Wl,-rpath -Wl,/home/jec/eclib/eclib-20180727/_inst/lib
//usr/local/lib/libntl.so: undefined reference to `pthread_key_create'
//usr/local/lib/libntl.so: undefined reference to `pthread_setspecific'
collect2: error: ld returned 1 exit status
@JohnCremona I just had a look but make distcheck
works fine for me actually.
You probably need -lpthread
at the end in the following
g++ -std=gnu++11 -g -O2 -o .libs/solve_conic solve_conic.o -lpthread ../libsrc/.libs/libec.so -lpari -lntl -Wl,-rpath -Wl,/home/jec/eclib/eclib-20180727/_inst/lib
Thanks.