Open laxtiz opened 2 years ago
Hello,
Does it compile successfully when linechart library is not included?
yes, i can compile without linechart. here you can see i added more library from seeed, but just compile failed with linechart
Can you attach a complete log of the output to check for all the errors?
here is a demo repo, just only linechart library.
platformio config:
[env:seeed_wio_terminal]
platform = atmelsam
board = seeed_wio_terminal
framework = arduino
lib_deps =
; internal library
Wire
SPI
Seeed_Arduino_LCD
; clone from github
https://github.com/Seeed-Studio/Seeed_Arduino_Linechart
; linechart need this
adafruit/Adafruit Zero DMA Library@^1.1.0
here is log: log.txt
Hello,
According to your error messages, it seems that "-std=gnu++14" should be set according to ArduinoCore-samd: https://github.com/Seeed-Studio/ArduinoCore-samd/blob/28c4ac5980a0393f7417c773c5d8fa4f5283b379/platform.txt#L42
From platformIO config, it seems that it is set to "-std=gnu++11" and it should be changed to "-std=gnu++14": https://github.com/platformio/platform-atmelsam/blob/67f42c69ad65f4ddbf3abfcff130bc0c9965d41d/builder/frameworks/arduino/arduino-common.py#L66
Could you maybe locally change this "platform-atmelsam/builder/frameworks/arduino/arduino-common.py" file and have a try again?
Thank you
Hello @laxtiz ,
I have tested linechart with platformio and it works. Please add the following to platformio.ini:
build_unflags = -std=gnu++11
build_flags = -std=gnu++14
Describe the bug 我不太懂C++,我只想了解这是什么问题。 i don't know more with c++. i can't compile with this library.
To Reproduce Steps to reproduce the behavior: code with PlatformIO IDE, but compile faild when linechart library installed.
Expected behavior A clear and concise description of what you expected to happen. no more error.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context here is platform package version:
here is my platformio config: