calref / cboe

Classic Blades of Exile
http://spiderwebforums.ipbhost.com/index.php?/forum/12-blades-of-exile/
Other
169 stars 41 forks source link

Linking fails on Ubuntu 19.04 (g++ 8.3.0) due to missing -pthread link flag #194

Closed jkatzmewing closed 4 years ago

jkatzmewing commented 4 years ago

Without adding -pthread to posix LINKFLAGS:

/usr/bin/ld: build/obj/game/boe.main.o: undefined reference to symbol 'pthread_condattr_setclock@@GLIBC_2.3.3'
/usr/bin/ld: /lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
scons: *** [build/bin/Blades of Exile] Error 1
scons: building terminated because of errors.

With -pthread it links.

Not sure how/if this impacts BSD or Solaris systems (assuming that supporting those is a concern).

clort81 commented 4 years ago

Did you get problems compiling src/tools/enum_map.hpp on ubuntu? That gcc did you use?

CelticMinstrel commented 4 years ago

Fixed in 45bbc12208f9dd9b35a19edc556f3d37a18aeda7