Comments (9)
duplicate arduino/Arduino#5063
from arduinocore-arc32.
Paul, I was advised to post the issue here by facchinm, and he closed the issue so I would post it here.
So I don't really understand why you are marking it duplicate.
I see you have a platform.txt for the 101, but I can't find it on my machine. Also where would platform.local.txt be placed relative to the project file? Because this is what I need to adjust to get c99 mode.
Thanks!
from arduinocore-arc32.
@jimdgit can you post the code that requires C99 to compile, and show the compile error? is it in a .cpp or .c file?
from arduinocore-arc32.
I see you have a platform.txt for the 101, but I can't find it on my machine.
Arduino15/packages/Intel/hardware/arc32/<version>/platform.txt
Arduino15
is where preferences.txt
is, you can its location in the Preferences dialog.
from arduinocore-arc32.
OK, I backtracked over the issue on Arduino's github, saw your C file.
Open the file that @oqibidipo mentioned and add -std=gnu99 to compiler.c.flags. See if that works for you.
from arduinocore-arc32.
First thank you all for this information!
Arduino15/packages/Intel/hardware/arc32//platform.txt
On windows this is "hidden" in:
C:\Users\AppData\Local
unlike the default ones that are in the install directory (that's why AI could not seem to locate these files)
I will try this tonight and post results.
from arduinocore-arc32.
Ok, I can confirm that adding -std=gnu99 to compiler.c.flags. in Arduino15/packages/Intel/hardware/arc32/platform.txt solves all my issues.
Thanks again to @eriknyquist and @oqibidipo for taking time to help me out.
from arduinocore-arc32.
Can we please fix this in the core itself? The compilation options should match those of the AVR and SAMD cores (which means using gnu11 and gnu++11 standards IIRC).
from arduinocore-arc32.
@matthijskooijman yes, there is -std=gnu11
in the compiler.c.flags
here:
https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/platform.txt
So we should match that I guess. I'll look into it.
from arduinocore-arc32.
Related Issues (20)
- Error compiling for board Arduino/Genuino 101. HOT 7
- Peripheral not connectable when broadcasting characteristic value
- Incorrect capitalization of true in CurieIMU documentation HOT 3
- some EEPROM.CPP ERROR HOT 1
- SPI.beginTransaction allows SPISettings faster than 8 MHz
- Cannot discover attributes HOT 1
- Limited error messages, when selecting the wrong COM port
- How to using UART ISR ?
- [Urgent][Stuck Problem] BLE setValue in callback function!
- Can't send BLE data less than 25ms? HOT 3
- Crashing when three or more characteristics are updated every 30ms? HOT 1
- CurieBLE - BLECommon dosen't existe .. HOT 2
- CurieBLE for HM-11
- Should extra_flags be empty in platform.txt? HOT 1
- SoftwareSerial core library
- IPAddress missing definition of operator!=()
- When I try to upload a simple sketch to the Arduino 101, I get the following error on Mac M1 (macOS Monterey) HOT 3
- No tag for 2.0.6 release
- error: #error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor." #error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor." HOT 2
- Placing the breadboard with BMI160 to horizontally(remapping axis) HOT 1
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 arduinocore-arc32.