The compiler tag has no usage guidance.
1
vote
1answer
32 views
Multiple definition of “…” Compiler Error
I am creating a simple library to test how multiple files in an Arduino program works. I have three files. MotorController.ino:
#include <motor.h>
void setup() {
motorInitialize();
}
void ...
1
vote
1answer
31 views
Compiling source with Arduino.h with avr-g++
How should I include the Arduino libraries when I'm compiling from the the command line? I tried to do it like this:
avr-g++ -g -Os -Wall -mcall-prologues -mmcu=atmega328p -fno-exceptions -o blink....
0
votes
3answers
57 views
Arduino constant vs Microchip PIC constant
2.2 THE BASICS OF C PROGRAMMING LANGUAGE book is has like this,
CONSTANTS
A constant is a number or a character having fixed value that cannot be changed during program execution. Unlike ...
3
votes
1answer
36 views
Compiling error:passing as 'this' argument
I am trying to make a small keyboard class to handle two buttons(in the future >2) that are connected to my arduino UNO. The buttons being pressed are detected using interrupts. Here is the code:
...
-1
votes
1answer
27 views
smaller program bigger sketch
I'm working on a program composed by several classes.
I reduced the size of a single class of (more or less) one hundred lines (4kb of stuff)
I expected a smaller sketch but surprisingly it is ...
0
votes
0answers
34 views
Using SlickEdit to compile Arduino files
I would like to compile my Arduino sketches in SlickEdit. I have turned on the verbose compile output in the standard IDE and I can see the compile and switches, but it doesn't appear that there is a ...
0
votes
2answers
161 views
Is there a constant for the Maximum Unsigned Long value in an Arduino compiler?
I am writing a timer function that uses the micros() function which generates a unsigned long value. To compensate for a roll over condition, I would like to use the maximum value for that variable ...
0
votes
0answers
148 views
My library no longer compiles for ESP8266 - “invalid pin specified”
In developing an Arduino library for driving Lixie displays, I've hit an issue.
My original version required the user to define constants like the FastLED data pin and number of digits in a separate ...
-1
votes
2answers
69 views
Why are some letters reserved? [closed]
I wrote a function that takes characters and noticed that the Arduino Compiler treated some characters like system-reserved, and other like functions, and a few just like characters. Lowercase doesn't ...
1
vote
1answer
51 views
Compiling Error
I am trying to compile this code on arduino IDE...It showing error
code is
#include <IRremote.h>
int RECV_PIN = 6;
int led = 12;//1FE50AF
int led1 = 10;//1FED827
int led2 = 9; //1FEF807
int ...
1
vote
1answer
67 views
I swear this worked yesterday!! - mysterious compiler error
I thought I finally had this working yesterday, the code compiled, and executed on the arduino, there were however some small quirks but today I went to fix a small timing issue, but got the following ...
1
vote
2answers
1k views
GCC msg “note: in definition of macro 'max'” error message
I'm using the ATtiny x5 series board, compiling my project (.cpp.ino file). Whenever I use the max(a,b) macro, I receive this message:
"C:\Documents and Settings\<user>\Local Settings\...
0
votes
0answers
75 views
'xtensa-lx106-elf-gcc' error when trying to compile for ESP8266 board
I am getting:
xtensa-lx106-elf-gcc: error: libraries\LiquidMenu\LiquidMenu.a: No such file or directory
exit status 1
Error compiling for board Generic ESP8266 Module.
error when I try to compile ...
0
votes
1answer
202 views
Getting "Undefined reference to vtable for {classname}
I have a large collection of libraries that compile correctly but won't link. I am using Visual Micro for Visual Studio 2015. Here is the complete collection of error messages:
CommandPattern3.cpp.o:...
1
vote
1answer
138 views
Force compiler to execute instructions sequentially?
Is there a way to force the Arduino compiler to compile individual commands sequentially? Looking at the disassembly, lines of the assembly code for different C/Arduino commands are mixed. I was ...
3
votes
2answers
209 views
What is the Arduino compiler's version of `__unused` for function parameters?
When I first started with the Arduino environment I noticed that it had File | Preferences | Compiler Warnings set to None, so I set it to All - and there were many, many warnings in the supplied ...