alias=$$(printf %s "$${old_library}" | $(SED) 's|winpthread|pthread|'); \ rm -f $(DESTDIR)$(libdir)/$${alias}; \ fi DISTCHECK_CONFIGURE_FLAGS = --host=$(host_triplet) 7 changes: 0 additions & 7 deletions 7 mingw-w64-libraries/winpthreads/configure.ac Original file line...
最相关的例子是libstdc ++的C ++ 11<thread>,<mutex>和<future>,当使用内部的Win32线程模型构建GCC时,没有完整的实现。 MinGW-w64提供了一个winpthreads(在Win32多线程API之上的一个pthreads实现),然后GCC可以链接到所有的奇特功能。 我必须强调这个选项并不禁止你编写任何你想要的代码(它对你可以在代码中调用...
mingw-w64 11.0.0 introduced WINPTHREADS_USE_DLLIMPORT to do this explicitly; prior versions co-opted this on the internal DLL_EXPORT, but this is ignored in 11.0 and later unless IN_WINPTHREAD is also defined, so we can safely define both to support both versions. */ ...
undefined reference to `_imp__pthread_mutex_lock' .libs/compatibility-atomic-c++0x.o: In function `_gthread_mutex_unlock': /home/cguo/gcc-4.8.2/build/i686-w64-mingw32/libstdc++-v3/include/i686-w64-mingw32/bits/gthr-default.h:778: undefined reference to `_imp__pthread_mutex_unlock' co...
27 changes: 27 additions & 0 deletions27mingw-w64-libraries/winpthreads/src/libgcc/dll_math.c Original file line numberDiff line numberDiff line change Expand Up@@ -120,6 +120,7 @@ u_quad_t __qdivrem(u_quad_t u, u_quad_t v, u_quad_t *rem); ...
Support MinGW-w64 11.0 winpthreads library Browse files MinGW-w64 release 11.0 introduced a `WINPTHREADS_USE_DLLIMPORT` macro to explicitly ask for the `dllimport` attribute to be set on all symbols. `DLL_EXPORT` has that same effect on previous versions of MinGW-w64, they can be both...