AliceStats / Alice

Dota 2 replay parser written in C++
Apache License 2.0
78 stars 8 forks source link

Building fails on Arch Linux #8

Closed agent28 closed 9 years ago

agent28 commented 9 years ago

Building fails with the following error:

[ 96%] Building CXX object CMakeFiles/alice-verify.dir/example/verify.cpp.o
Linking CXX executable alice-verify
/usr/bin/ld: CMakeFiles/alice-verify.dir/example/verify.cpp.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/lib/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

Adding -lpthread flag for the GCC compiler in CMakeLists.txt apparently solved the issue for me as I was able to build successfully.

invokr commented 9 years ago

Hi, thanks for reporting this, it's definitely a bug. I will look into linking pthread to alice-validate and conditionally adding it to the examples on linux only.

Robin