View Single Post
Old 25th December 2018, 12:06   #3  |  Link
Reino
Registered User
 
Reino's Avatar
 
Join Date: Nov 2005
Posts: 693
Quote:
Originally Posted by LoRd_MuldeR View Post
whether setting CXXFLAGS or CFLAGS has any effect, that totally depends on the build system (e.g. Makefile) that is used to build the application!
libdmusic is built with cmake. In 'CMakeCache.txt' at least I can see:
Code:
//Flags used by the CXX compiler during all build types.
CMAKE_CXX_FLAGS:STRING=-std=gnu++14
Quote:
Originally Posted by LoRd_MuldeR View Post
Also, make sure that your MinGW was built with "posix" threading (libwinpthread). If built with "win32" threading, C++11 threading features are not available!
Code:
$ ./mingw-w64-build-r25 --help
[...]
Compile Options:
[...]
  --threads=LIB               compile with support for thread LIB (winpthreads,
                              pthreads-w32, disable) [pthreads-w32]
As this script defaults to pthreads-w32, I've (successfully) rebuilt my toolchain with winpthreads this time. (libwinpthread == winpthreads, right?)
Despite all the effort however I'm still getting the mutex error. I really don't understand why.
__________________
My hobby website
Reino is offline   Reply With Quote