After several from-scratch attempts, I get the following (probably simple) 
error from make LIBS=-lpthread:                    make[2]: Entering directory 
`/home/lowasser/glpk-4.43/examples #39;

/bin/bash ../libtool --tag=CC   --mode=link gcc  -g -O2   -o glpsol glpsol.o 
../src/libglpk.la -lpthread

libtool: link: gcc -g -O2 -o .libs/glpsol glpsol.o  ../src/.libs/libglpk.so 
-lpthread                   

../src/.libs/libglpk.so: undefined reference to `sqrt #39;                      
                            

../src/.libs/libglpk.so: undefined reference to `floor #39;                     
                            

../src/.libs/libglpk.so: undefined reference to `ceil #39;                      
                            

../src/.libs/libglpk.so: undefined reference to `log #39;                       
                            

../src/.libs/libglpk.so: undefined reference to `atan #39;                      
                            

../src/.libs/libglpk.so: undefined reference to `fmod #39;                      
                            

../src/.libs/libglpk.so: undefined reference to `acos #39;                      
                            

../src/.libs/libglpk.so: undefined reference to `exp #39;                       
                            

../src/.libs/libglpk.so: undefined reference to `sin #39;                       
                            

../src/.libs/libglpk.so: undefined reference to `pow #39;                       
                            

../src/.libs/libglpk.so: undefined reference to `atan2 #39;                     
                            

../src/.libs/libglpk.so: undefined reference to `cos #39;                       
                            

../src/.libs/libglpk.so: undefined reference to `log10 #39;




Bah, humbug.







Louis Wasserman
wasserman.lo...@gmail.com
http://profiles.google.com/wasserman.louis


On Thu, Apr 22, 2010 at 3:30 PM, Andrew Makhorin <m...@gnu.org> wrote:


> Pthread_getspecific and pthread_setspecific are part of the pthread
> library. On Linux you probably need to specify -lpthread along with
> other options passed to gcc and libtool.

> So, um, where/how do I put that in?





make LIBS=-lpthread











 
After several from-scratch attempts, I get the following (probably simple) error from make LIBS=-lpthread:
                    
make[2]: Entering directory `/home/lowasser/glpk-4.43/examples'
/bin/bash ../libtool --tag=CC   --mode=link gcc  -g -O2   -o glpsol glpsol.o ../src/libglpk.la -lpthread
libtool: link: gcc -g -O2 -o .libs/glpsol glpsol.o  ../src/.libs/libglpk.so -lpthread                   
../src/.libs/libglpk.so: undefined reference to `sqrt'                                                  
../src/.libs/libglpk.so: undefined reference to `floor'                                                 
../src/.libs/libglpk.so: undefined reference to `ceil'                                                  
../src/.libs/libglpk.so: undefined reference to `log'                                                   
../src/.libs/libglpk.so: undefined reference to `atan'                                                  
../src/.libs/libglpk.so: undefined reference to `fmod'                                                  
../src/.libs/libglpk.so: undefined reference to `acos'                                                  
../src/.libs/libglpk.so: undefined reference to `exp'                                                   
../src/.libs/libglpk.so: undefined reference to `sin'                                                   
../src/.libs/libglpk.so: undefined reference to `pow'                                                   
../src/.libs/libglpk.so: undefined reference to `atan2'                                                 
../src/.libs/libglpk.so: undefined reference to `cos'                                                   
../src/.libs/libglpk.so: undefined reference to `log10'

Bah, humbug.


Louis Wasserman
wasserman.lo...@gmail.com
http://profiles.google.com/wasserman.louis


On Thu, Apr 22, 2010 at 3:30 PM, Andrew Makhorin <m...@gnu.org> wrote:
> Pthread_getspecific and pthread_setspecific are part of the pthread
> library. On Linux you probably need to specify -lpthread along with
> other options passed to gcc and libtool.

> So, um, where/how do I put that in?

make LIBS=-lpthread



_______________________________________________
Help-glpk mailing list
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to