You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file included from C:/tmp/libtransmog_gcc_cov/googletest-src/googletest/include/gtest/internal/gtest-internal.h:40:0,
from C:/tmp/libtransmog_gcc_cov/googletest-src/googletest/include/gtest/gtest.h:58,
from C:\tmp\libtransmog_gcc_cov\googletest-src\googletest\src\gtest-all.cc:39:
C:/tmp/libtransmog_gcc_cov/googletest-src/googletest/include/gtest/internal/gtest-port.h:1782:3: error: 'AutoHandle' does not name a type
AutoHandle thread_;
My analysis so far:
I understand that posix thread support is not the best and not even available in all runtime libraries of MinGW. When explicity configuring using cmake -Dgtest_disable_pthreads=On all works fine.
Unfortunately MinGW distributes libpthread and therefore googletest/cmake/internal_utils.cmake finds pthread and sets -DGTEST_HAS_PTHREAD=1 (line 123).
This is however inconsistent with the preprocessor macros in the source in googletest/include/gtest/internal/gtest-port.h
I have not yet figured out the chain of macros that leads to the fact that Autohandle is in an inactive preprocessor #ifdef #elif construct but ThreadWithParamBase is enabled.
I am not confident to fix the preprocessor macros without breaking the build on other platforms/compilers. I could "fix" it on cmake-level quickly but the inconsistency in the code would remain.
** Environment MinGW distributed with QT 5.1 **
Target: i686-w64-mingw32
gcc version 4.8.0 (rev2, Built by MinGW-builds project)
The text was updated successfully, but these errors were encountered:
Compilng on MinGW gcc 4.8.0 the class
Autohandle
formgoogletest/include/gtest/internal/gtest-ports.h
is not defined.Error:
My analysis so far:
I understand that posix thread support is not the best and not even available in all runtime libraries of MinGW. When explicity configuring using
cmake -Dgtest_disable_pthreads=On
all works fine.Unfortunately MinGW distributes libpthread and therefore
googletest/cmake/internal_utils.cmake
finds pthread and sets-DGTEST_HAS_PTHREAD=1
(line 123).This is however inconsistent with the preprocessor macros in the source in
googletest/include/gtest/internal/gtest-port.h
I have not yet figured out the chain of macros that leads to the fact that
Autohandle
is in an inactive preprocessor#ifdef #elif
construct butThreadWithParamBase
is enabled.I am not confident to fix the preprocessor macros without breaking the build on other platforms/compilers. I could "fix" it on cmake-level quickly but the inconsistency in the code would remain.
** Environment MinGW distributed with QT 5.1 **
Target: i686-w64-mingw32
gcc version 4.8.0 (rev2, Built by MinGW-builds project)
The text was updated successfully, but these errors were encountered: