help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Thread safety of GLPK


From: Andrew Makhorin
Subject: Re: [Help-glpk] Thread safety of GLPK
Date: Thu, 22 Apr 2010 23:39:24 +0400

> Let me put it more directly:

> I replaced glpenv02.c with the version someone posted as being
> thread-safe.  ./configure worked fine, but make yielded:

> /bin/bash ../libtool --tag=CC   --mode=link gcc  -g -O2   -o glpsol
> glpsol.o ../src/libglpk.la -lm -L/usr/include/

> libtool: link: gcc -g -O2 -o .libs/glpsol glpsol.o
>  ../src/.libs/libglpk.so -L/usr/include/ -lm

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

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

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.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]