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
My problem is somewhat related to this one, though I am not sure if it got fixed over the years.
I want to compile cpputest inside a MSYS2 (MinGW-32) shell using cmake via
cd cpputest_build
cmake ..
make
Building libCppUTest.a and libCppUTestExt.a succeeded, but CppUTestTests failed with a lot of linker errors related to the C++ standard library (like undefined reference to __gxx_personality_v0'). When linking my unit tests with the libraries, I get pretty much the same errors, which however get resolved when I link with -lstdc++ additionally. Unfortunately, whenever a test assertion fails, the unit test will just crash ("This application has requested the Runtime to terminate it in an unusual way...") rather than generating output (e.g. JUnit report), so I guess something went wrong during the building process of CppUTest. What can I do about it? This problem already appears in very simple situations like
TEST(Group, SomeTest) {
FAIL("always");
}
I am using GCC 6.3.0.
The text was updated successfully, but these errors were encountered:
I figured it out. CMake auto-detected /mingw32/bin/cc.exe for a C and C++ compiler. However, this one doesn't seem to include -lstdc++, at least on MinGW. Running CMake as
fixed the linker error issue. Same for the Runtime error: use again the same compiler binary such as i686-w64-mingw32-c++.exe for building the unit tests. Those errors seem to stem from awkward ABI incompatabilities between different GCC versions.
Hi!
My problem is somewhat related to this one, though I am not sure if it got fixed over the years.
I want to compile cpputest inside a MSYS2 (MinGW-32) shell using cmake via
Building libCppUTest.a and libCppUTestExt.a succeeded, but CppUTestTests failed with a lot of linker errors related to the C++ standard library (like
undefined reference to __gxx_personality_v0'
). When linking my unit tests with the libraries, I get pretty much the same errors, which however get resolved when I link with-lstdc++
additionally. Unfortunately, whenever a test assertion fails, the unit test will just crash ("This application has requested the Runtime to terminate it in an unusual way...") rather than generating output (e.g. JUnit report), so I guess something went wrong during the building process of CppUTest. What can I do about it? This problem already appears in very simple situations likeI am using GCC 6.3.0.
The text was updated successfully, but these errors were encountered: