LoginSignup
0
1

More than 1 year has passed since last update.

cファイル先頭にlanguage modes specified are incompatible c/c++(1027)と表示されるとき

Posted at

問題

vscodeで新しくcファイルを作ると、ファイルの先頭に赤い波線が引かれ、language modes specified are incompatible c/c++(1027)というメッセージが出ました。

原因

cmakeが関係してると思います。詳しいことはわかりませんでした。

解決法

ctrl+shift+pでコマンドパレットを表示→c/c++ edit configurationで、c_cpp_properties.jsonを編集します。
configurationProviderをms-vscode.cmake-toolsから、ms-vscode.cpptoolsに変えるとエラーが消えました。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1