0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

VSCodeでArduinoコンパイルエラー(「SD.h」に対して複数のライブラリが見つかりました)

Posted at

VSCodeでArduinoスケッチファイルをコンパイルした際、
複数のライブラリが見つかりました、というエラーが出てコンパイル失敗してしまったので
その時の対応を備忘録して記載します。
image.png

コンパイル中に表示された内容を見返してみると・・・
二つのファイルをまとめてコンパイルしてしまっているようです。
image.png
コンパイル失敗の原因は上記のようです。
これで二重定義のエラーになってしまったようでした。


ただ、2つのファイルはタブなどで開いておらず、何故まとめてコンパイルしようとしたのかは不明です。(同じフォルダに複数のスケッチファイルを置いておくとダメっぽいです)
image.png

とりあえず1フォルダに1スケッチファイルを置くことにします。
(良い対処方法が分かれば追記するようにします)

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?