Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [compiler]

The tag has no usage guidance.

0
votes
1answer
61 views

Weird problem with arduino

I wrote the code below and the result is not what I expected at all! I'm not sure why it's happening! void setup() { // put your setup code here, to run once: Serial.begin(9600); } const uint8_t ...
0
votes
3answers
112 views

Arduino IDE c++ 11 raw string literal have issues with // in http://, complier thinks // is comment

char webpage[] PROGMEM = R"=====( <html> <head> <script src="https://cdnjs.cloudflare.com/ajax/libs/svg.js/2.6.6/svg.min.js"></script> </head> <body> &...
0
votes
3answers
93 views

Is there an open source compiler for Arduino Sketch codes?

I am working on a web app to program some nodeMCU devices that were flashed with the arduinoOTA library. http://esp8266.github.io/Arduino/versions/2.0.0/doc/ota_updates/ota_updates.html I tried the ...
1
vote
0answers
33 views

Are there documented Arduino class or file name restrictions?

I ran into a strange problem were the compiler could not find a header file that I knew existed. The problem was I created a class called ArduinoEvent and put it in ArduinoEvent.hpp, but when I ...
1
vote
1answer
270 views

Pass a char array to a function that uses File as parameter

I am in serious need for help here. I have a rather small function that get's the number of files from within a given directory. Now, the directory name (that is the path) is stored in a char array ...
0
votes
1answer
2k views

What is causing this 'narrowing conversion' warning?

Because I'm still figuring out 'Arduino C' I leave all warnings on. Recently I got this one: narrowing conversion of '(int)(((unsigned char)bx_0) | ((unsigned char)bx_1))' from 'int' to 'const byte.....
0
votes
1answer
356 views

Error Compiling to Board Teensy LC

I wrote a simple switch program using a teensy LC and transistors, but the Arduino compiler will not compile for the Teensy LC. And not for just my program, but any program, including the example ...
2
votes
2answers
2k views

Duplicate libraries while compiling for ESP32 in the Arduino IDE

I have just added the ESP32 toolchain to the Arduino IDE (v1.8.0) on Windows 10. To get the IDE to allow me to select ESP32 chips I had to place the Espressif folder in "D:\Program Files(x86)\Arduino\...
2
votes
1answer
7k 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
502 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
344 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
293 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
39 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
130 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 ...
3
votes
4answers
4k 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 ...
-1
votes
2answers
102 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
149 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
124 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
7k 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
1answer
1k 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
472 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
632 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 ...