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
The file googletest/src/gtest-internal-inl.h contains C++ features such as classes, member functions, std::string, templates, auto, iterators and virtual functions, which are all not valid in C. It seems like the file should have a C++ header suffix, given how all these features are valid in C++.
Steps to reproduce the problem
Compile the file using any standard-compliant C compiler.
What version of GoogleTest are you using?
1.16.0
What operating system and version are you using?
Ubuntu 22.04.5 LTS
What compiler and version are you using?
GCC 13.1.0
What build system are you using?
I guess Bash if that counts.
Additional context
This could be fixed by simply renaming the file to a C++ header suffix such as .hpp or .hh.
The text was updated successfully, but these errors were encountered:
Describe the issue
The file googletest/src/gtest-internal-inl.h contains C++ features such as classes, member functions,
std::string
, templates,auto
, iterators and virtual functions, which are all not valid in C. It seems like the file should have a C++ header suffix, given how all these features are valid in C++.Steps to reproduce the problem
Compile the file using any standard-compliant C compiler.
What version of GoogleTest are you using?
1.16.0
What operating system and version are you using?
Ubuntu 22.04.5 LTS
What compiler and version are you using?
GCC 13.1.0
What build system are you using?
I guess Bash if that counts.
Additional context
This could be fixed by simply renaming the file to a C++ header suffix such as
.hpp
or.hh
.The text was updated successfully, but these errors were encountered: