-
Notifications
You must be signed in to change notification settings - Fork 51
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
how can i not check system-headers #22
Comments
which source file is being processed when this error happens? (the source file that includes logging.h) |
in this folder several .cpp and .h include <glog/logging.h> @erenon |
Why does bazel try to compile cpp files as C? How does your toolchain definition look like? What does aquery say (compile flags)? |
[https://github.com/google/glog/issues/839](google/glog#839) @erenon hi,I have raised this issue |
hi,@erenon this is my Minimized example,show error WORKSPACE
BUILD
.clang-tidy
es_cpp/BUILD
es_cpp/testaaa.h bazel build //es_cpp:main-es1 --config clang-tidy
|
I run into the same problem. It's actually an issue with clang treating To fix it, change the
|
always report
error: invalid argument '-std=c++17' not allowed with 'C' [clang-diagnostic-error] /root/.cache/bazel/_bazel_root/c0cc7bb48e68379f59a785b3d4b8baaf/execroot/__main__/bazel-out/k8-fastbuild/bin/external/com_github_google_glog/_virtual_includes/glog/glog/logging.h:42:10: error: 'iosfwd' file not found [clang-diagnostic-error] #include <iosfwd>
@erenon
The text was updated successfully, but these errors were encountered: