sferes2 / sferes2

A lightweight, generic C++11 framework for evolutionary computation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pthread in Ubuntu 18.10

Aneoshun opened this issue · comments

Apparently, sferes does not compile on ubuntu 18.10 (fresh install):
undefined reference to `pthread_join@GLIBC_2.2.5'

It seems that the -lpthread flag is missing. We fixed it by adding:
conf.env.LIBPATH_PTHREAD = ['/usr/lib/x86_64-linux-gnu/']
conf.env.LIB_PTHREAD = ['pthread’]
In the wscript (after the #boost mpi section).

If you think this is the best way to solve this, I can push a fix.

Also, can you try to not link to pthread but to use the -pthread option in the cxxflags & ldflags?