-
Notifications
You must be signed in to change notification settings - Fork 7
can't compile with platformio. #11
Comments
Hello, Does it compile successfully when linechart library is not included? |
yes, i can compile without 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: |
Hello, According to your error messages, it seems that "-std=gnu++14" should be set according to ArduinoCore-samd: From platformIO config, it seems that it is set to "-std=gnu++11" and it should be changed to "-std=gnu++14": 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:
The text was updated successfully, but these errors were encountered: