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.

PlatformIO January2021(version1.53.2)でのビルドエラー

Last updated at Posted at 2021-04-08

PlatformIO のバージョン

January2021(version1.53.2)

症状

2020年11月以来、5か月ぶりに Platform IOで新規プロジェクトを作成し、M5Stackのライブラリをプロジェクトに追加しました。
新規プロジェクト作成時かM5Stackライブラリ追加時か忘れましたが、どちらかで自動的に最新バージョンにアップデートされました。

その影響かもしれませんが、その後、M5Stackのプログラムをビルドすると、こんなエラーが出ました。

.pio\build\m5stack-grey\libFrameworkArduino.a(main.cpp.o):(.literal._Z8loopTaskPv+0x4): undefined reference to `loop()'
.pio\build\m5stack-grey\libFrameworkArduino.a(main.cpp.o): In function `loopTask(void*)':
C:\Users\ユーザーネーム\.platformio\packages\framework-arduinoespressif32\cores\esp32/main.cpp:17: undefined reference to `loop()'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\m5stack-grey\firmware.elf] Error 1

解決方法

エラーメッセージ
undefined reference to `loop()'
のとおり、

C:\Users\ユーザーネーム\ .platformio\packages\framework-arduinoespressif32\cores\esp32/main.cpp

にある

loop()

をコメントアウトしたら、ビルドが成功しました。

本当にこれでいいのか不安ですけど、
どこかのネコのように
「通ったのでヨシ!」
とします。


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?