質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
C++

C++はC言語をもとにしてつくられた最もよく使われるマルチパラダイムプログラミング言語の1つです。オブジェクト指向、ジェネリック、命令型など広く対応しており、多目的に使用されています。

Q&A

解決済

1回答

3732閲覧

cppcheckで、clang++ のインクルードファイルが見つからない.(長文失礼)

cateye

総合スコア6851

C++

C++はC言語をもとにしてつくられた最もよく使われるマルチパラダイムプログラミング言語の1つです。オブジェクト指向、ジェネリック、命令型など広く対応しており、多目的に使用されています。

0グッド

0クリップ

投稿2015/06/09 13:36

編集2016/07/04 02:58

***長期にわたり掲載していましたが、環境そのものがなくなったのでクローズとします。ご迷惑をおかけしました。
###前提・実現したいこと
cppcheck時に、clang++36のインクルードパスを指定したい

###発生している問題・エラーメッセージ
cppcheck --enable=all -f --check-config -I/usr/include -I/usr/include/c++/v1 -I/usr/local/llvm36/lib/clang/3.6.1/include fizzbuzz.cpp
Checking fizzbuzz.cpp...
[/usr/include/c++/v1/__config:99]: (information) Include file: <sys/isa_defs.h> not found.
[/usr/include/c++/v1/__config:110]: (information) Include file: <endian.h> not found.
[/usr/include/c++/v1/__config:316]: (information) Include file: <features.h> not found.
[/usr/include/c++/v1/cstdio:108]: (information) Include file: "support/win32/support.h" not found.
[/usr/include/c++/v1/cctype:41]: (information) Include file: "support/win32/support.h" not found.
[/usr/include/c++/v1/cwchar:110]: (information) Include file: <support/win32/support.h> not found.
[/usr/include/c++/v1/limits:115]: (information) Include file: "support/win32/limits_win32.h" not found.
[/usr/include/c++/v1/limits:119]: (information) Include file: "support/ibm/limits.h" not found.
[/usr/include/c++/v1/iterator:335]: (information) Include file: <Availability.h> not found.
[/usr/include/c++/v1/cstdlib:88]: (information) Include file: "support/win32/locale_win32.h" not found.
[/usr/include/c++/v1/algorithm:632]: (information) Include file: "support/ibm/support.h" not found.
[/usr/include/c++/v1/algorithm:635]: (information) Include file: "support/win32/support.h" not found.
[/usr/include/c++/v1/__locale:23]: (information) Include file: <support/win32/locale_win32.h> not found.
[/usr/include/c++/v1/__locale:25]: (information) Include file: <support/ibm/xlocale.h> not found.
[/usr/include/c++/v1/locale:195]: (information) Include file: <support/win32/locale_win32.h> not found.
[/usr/include/c++/v1/locale:201]: (information) Include file: <Availability.h> not found.
Checking usage of global functions..
###ソースコード

lang

1clang++36によるコンパイル&実行は問題ありません。

###補足情報(言語/FW/ツール等のバージョンなど)
~/test cppcheck --version
Cppcheck 1.63
~/test clang++36 -v fizzbuzz.cpp
clang version 3.6.1 (tags/RELEASE_361/final)
Target: x86_64-portbld-freebsd10.1
Thread model: posix
"/usr/local/llvm36/bin/clang" -cc1 -triple x86_64-portbld-freebsd10.1 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name fizzbuzz.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.17.50 -v -dwarf-column-info -resource-dir /usr/local/llvm36/bin/../lib/clang/3.6.1 -internal-isystem /usr/include/c++/v1 -fdeprecated-macro -fdebug-compilation-dir /home/kondo/test -ferror-limit 19 -fmessage-length 96 -mstackrealign -fobjc-runtime=gnustep -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/fizzbuzz-fb0e36.o -x c++ fizzbuzz.cpp
clang -cc1 version 3.6.1 based upon LLVM 3.6.1 default target x86_64-portbld-freebsd10.1
#include "..." search starts here:
#include <...> search starts here:
/usr/include/c++/v1
/usr/local/llvm36/bin/../lib/clang/3.6.1/include
/usr/include
End of search list.
"/usr/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --hash-style=both --enable-new-dtags -o a.out /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib /tmp/fizzbuzz-fb0e36.o -lc++ -lm -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o /usr/lib/crtn.o
~/test

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

KoichiSugiyama

2015/06/16 06:08

clang++36のインクルードファイルが -I オプションで指定した/usr/local/llvm36/lib/clang/3.6.1/includに本当にありますか? locateコマンドなどで、見つからないヘッダファイルが実際にどこにあるのか探した結果を書いていただけるとアドバイスが集まりやすいと思います。
guest

回答1

0

自己解決

環境そのものがなくなったのでクローズとします。ご迷惑をおかけしました。

投稿2020/01/25 14:27

cateye

総合スコア6851

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問