Hallo!
Thanks for your effort! I managed to build my application
nonetheless. I was wrongly assuming that a static library cannot
have dependencies on a shared library (pthread in this case) - yes
it can, if you link it to one.
The trick is to build Gecode as static libraries with thread support and then compile my own application with the static libraries and link it with the missing dynamic pthread library. That's ok - the pthread shared library is widely available.
Here is a snippet from my makefile:
CPPFLAGS= -I./gecode -L./gecode
export CPPFLAGS
export CXXFLAGS = $(CPPFLAGS) -fcx-limited-range
-fno-signaling-nans -fno-rounding-math -ffinite-math-only
-fno-math-errno -fno-strict-aliasing -O2 -fvisibility=hidden -ggdb
-std=c++11 -Wall -Wextra $(CXXUSR)
export CFLAGS = $(CPPFLAGS) $(CXXFLAGS) $(CUSR)
export LDLIBS = -lgecodesearch -lgecodeint -lgecodekernel
-lgecodesupport -lgecodedriver -lgecodeminimodel -pthread
Regards
Jörg
--
You received this message because you are subscribed to a topic in the Google Groups "Gecode" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gecode/UzjhYx0msYw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gecode+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gecode/83cb9d7f-04c0-454a-93b5-35908fcdb981n%40googlegroups.com.