Comments (4)
I've updated the code to avoid compiling AVR specific linkage for printf(). The only non-AVR platform I have to test with is Teensy 3.0. If you try to use printf() it causes a compile error. However, cout worked. I don't have an MKR1000. Try downloading the library and testing it. If it works I'll tag the release.
from arduinostl.
Your patch fixes the compile error. Thanks! There is still this warning though:
Arduino: 1.6.11 (Mac OS X), Board: "Arduino/Genuino MKR1000"
Build options changed, rebuilding all
WARNING: library ArduinoSTL claims to run on [avr] architecture(s) and may be incompatible with your current board which runs on [samd] architecture(s).
Sketch uses 9,512 bytes (3%) of program storage space. Maximum is 262,144 bytes.
from arduinostl.
Would you test if cout and cin work?
Also, I saw this morning that using printf() didn't cause an error on your platform, would you check to see if it works?
If you can confirm they work I'll add "samd" to the list of supported platforms and make a new release. That will fix the warning.
from arduinostl.
cout works perfectly fine. I think you can safely add it to the supported platforms.
from arduinostl.
Related Issues (20)
- Initializing vector<string> Beyond a Number of Entries Crashes Sketch HOT 2
- in file .src\limits line24 there throw an err HOT 1
- Mistake in seekoff function of basic_stringbuf HOT 1
- Wont compile with VS Code and PlatformIO HOT 1
- deque - Popping front crashes the arduino HOT 1
- Failed compilation of code using ArduinoSTL.h and array on Arduino Uno AVR Boards 1.8.3 HOT 11
- ISO C++1z does not allow dynamic exception specifications error HOT 1
- Accessing Inner pointer for std::vector
- Doesn't work with Teensyduino core
- Will Heap Data Structure be Implemented? HOT 1
- a lot of issues during compilation on plateformio / stm32 boards / arduino HOT 2
- Fails with latest IDE and Arduino HOT 2
- std::function not supported ??
- fails on wokwi.com due to the following
- multiple definition of `std::nothrow' HOT 13
- can be used in ESP32? HOT 1
- Doesn't compile with Arduino Nano 33 BLE (Nordic nRF52 platform)
- class object does not populate well outside scope
- This project is dead? HOT 2
- Multiple definitions of `std::nothrow` on `__AVR_ARCH__` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduinostl.