-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
suppress msvc warning : 4275 non dll-interface class 'x' used as base for dll-interface class 'y' #860
Comments
Changes about What gtest version you use before? |
It was 1.7.0. But from the old repository. how is this controlled anyhow On Mon, 29 Aug 2016 19:11 Arkady Shapkin, notifications@github.com wrote:
|
got another one also: e:\buildagent1\work\9dafcc015c350b6a\packages\gtestmock.1.8.0-alpha004\build\native\include\googletest\gtest/gtest-message.h(224, 0): error C2220: warning treated as error - no 'object' file generated (test\rm_change_detection_utilities_test.cpp) seems not related with 1b89db9? |
after putting back the pragmas disable 1.8.0 is compiling and running without any issues. thanks for the help. if no one has any idea. this can be closed |
Please rename issue than. PR #862 should fix your issue |
handled by #862 |
@KindDragon thanks for the help. I will reopen this if find anything else with #862 |
It is better to close this issue when someone of the main developers merge PR |
Hi
I am getting some warnings as errors as below.
1>d:\prod\structures\packages\gtestmock.1.8.0-alpha003\build\native\include\googletest\gtest/internal/gtest-internal.h(148): error C2220: warning treated as error - no 'object' file generated (test\tool_read_line_test.cpp)
1>d:\prod\structures\packages\gtestmock.1.8.0-alpha003\build\native\include\googletest\gtest/internal/gtest-internal.h(148): warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'testing::internal::GoogleTestFailureException' (test\tool_read_line_test.cpp)
1> C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdexcept(166) : see declaration of 'std::runtime_error'
1> d:\prod\structures\packages\gtestmock.1.8.0-alpha003\build\native\include\googletest\gtest/internal/gtest-internal.h(148) : see declaration of 'testing::internal::GoogleTestFailureException'
This is for a shared dll with visual studio 2013, with runtime dll MultiThreadedDLL. Is there some flag i need to pass to Cmake now to cmake that will handle this.
Thanks in advance.
br
jorge costa
The text was updated successfully, but these errors were encountered: