2024-09-25 11:48 PM
I am trying to use google test on a project in the cube IDE. I am using a sample "hello world" project. I have referenced various tutorials and instructions and here are my settings. My google test library is downloaded via msys2 and I am running a PC build with the latest installed cubeIDE, msys2 etc.
C++ and C compilers.
C++ linker:
However, I am getting the following errors:
It seems to me that the C++ standard is the cause. But I have change the compiler to use various C++ standards and I still get this error.
Would appreciate if I can get some help on this. I will provide additional detail if needed. Thank you.
Solved! Go to Solution.
2024-09-26 12:42 AM
I have solved my problem. It seems that the mingw environment is mapped to C:\msys64\ucrt64 and ucrt64 does not support the gtest library well. So I changed the environment variable to C:\msys64\mingw64 and now it works.
2024-09-26 12:42 AM
I have solved my problem. It seems that the mingw environment is mapped to C:\msys64\ucrt64 and ucrt64 does not support the gtest library well. So I changed the environment variable to C:\msys64\mingw64 and now it works.