Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How to add preprocessor symbol in C++ Arduino Project
How to add preprocessor symbol in C++ Arduino Project [message #1770876] Fri, 18 August 2017 08:51 Go to next message
jean-françois TRAP is currently offline jean-françois TRAPFriend
Messages: 5
Registered: August 2017
Junior Member
Hello,

In C++ standard project , I select :
Project > Properties > C/C++ Build > Settings > GCC C Compiler > Preprocessor
and add the preprocessor symbols (-D)

In C++ Arduino project, I want to do the same thing but the C/C++ Build menu does not exist.

What is the solution for add preprocessor symbol ?
Thank you for your help.

I use:
Eclipse IDE for C/C++ Developers
Version: Oxygen Release (4.7.0)
Build id: 20170620-1800
0S: Windows 8.1
Re: How to add preprocessor symbol in C++ Arduino Project [message #1771026 is a reply to message #1770876] Mon, 21 August 2017 09:32 Go to previous messageGo to next message
jean-françois TRAP is currently offline jean-françois TRAPFriend
Messages: 5
Registered: August 2017
Junior Member
Hello,

After more than 5500 view, no answer ! It seems that the ARDUINO with eclipse does not fascinate many people.
For other developer here is the solution I use:
in the file arduino\packages\arduino\hardware\samd\1.6.15\boards.txt
depending on your hardware,
it is possible to add environment variables on the following line:
arduino_zero_native.extra_flags='-D__SAMD21G18A__' '-D__MYBOARD__' {build.usb_flags}

It would be simpler to do the same thing in eclipse preferences.

Re: How to add preprocessor symbol in C++ Arduino Project [message #1771166 is a reply to message #1771026] Tue, 22 August 2017 15:22 Go to previous message
Jonah Graham is currently offline Jonah GrahamFriend
Messages: 416
Registered: June 2014
Senior Member
Hi Jean-Francois,

Sadly, please don't be deceived by 5500 views, that is not a measure of how many people saw this, but rather how many times http GET was done for the URL. The majority of that number is simply crawlers/robots.

As for your question, I would tend to agree. Have you filed an enhancement request? https://bugs.eclipse.org/bugs/enter_bug.cgi?bug_severity=enhancement&component=cdt-arduino&keywords=&product=CDT
Previous Topic:Crosscompiled debuging [SOLVED]
Next Topic:Argument specification modifies dashes
Goto Forum:
  


Current Time: Fri Apr 26 20:50:05 GMT 2024

Powered by FUDForum. Page generated in 0.02451 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top