Giter VIP home page Giter VIP logo

Comments (9)

PaulStoffregen avatar PaulStoffregen commented on August 15, 2024

duplicate arduino/Arduino#5063

from arduinocore-arc32.

jimdgit avatar jimdgit commented on August 15, 2024

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.

eriknyquist avatar eriknyquist commented on August 15, 2024

@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.

oqibidipo avatar oqibidipo commented on August 15, 2024

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.

eriknyquist avatar eriknyquist commented on August 15, 2024

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.

jimdgit avatar jimdgit commented on August 15, 2024

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.

jimdgit avatar jimdgit commented on August 15, 2024

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.

matthijskooijman avatar matthijskooijman commented on August 15, 2024

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.

eriknyquist avatar eriknyquist commented on August 15, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.