- Online Community Forums » Allegro Development » Using std::thread with Allegro5 (c++11)

This thread is locked; no one can reply to it. rss feed Print
Using std::thread with Allegro5 (c++11)
Member #16,496
July 2016

1||=== Build: Release in LPG2 (compiler: GNU GCC Compiler) ===| 2C:\Program Files (x86)\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\4.9.2\..\..\..\libpthread.a(libwinpthread_la-thread.o):thread.c|| multiple definition of `pthread_equal'| 3C:\Program Files (x86)\CodeBlocks\MinGW\lib\liballegro_monolith.dll.a(d005306.o)|| first defined here| 4||error: ld returned 1 exit status| 5||=== Build failed: 3 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===| 6

the obvious workaround is to use ALLEGRO_THREAD instead, but it would still be nice if this was fixed

Member #7,827
October 2006

What binaries are you using? It seems like your binaries link libpthread statically, so the solution is to just grab binaries that don't do that.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

Edgar Reynaldo
Member #8,592
May 2007

Go to: