Questions tagged [compilation-errors]
An error that is generated during the compilation phase, often due to problems with invalid syntax and/or types. Not for errors during the uploading or execution phase.
134 questions
0
votes
1
answer
65
views
esp_now_send takes a non-const uint8 mac address. Why? Does it modify it in some way?
I am using the Arduino IDE to do ESP-NOW communication with an ESP8266.
In espnow.h, on line 53 I find the function prototype:
int esp_now_send(u8 *da, u8 *data, int len);
Why does it take the mac ...
1
vote
1
answer
2k
views
When using LiquidCrystal_I2C.h library, why am I getting "invalid header file" in TinkerCad?
This is a link to the guy that made the project work, it seems that I'm unable to make it work by myself: the project.
What am I doing wrong?
/* DICTIONARY - CC = ConClusion ; */
/* LEGEND - ...
1
vote
0
answers
47
views
"'StructName' does not name a type" when returning struct, but trailing return type works [duplicate]
Note: Please, do actually read the question before voting to close. This only happens in arduino IDE, this is not about a generic "Does not name a type" error. The code is perfectly valid as ...
0
votes
1
answer
214
views
Arduino_DebugUtils.h: No such file or directory
How to get rid of this error?
/storage/emulated/0/ArduinoDroid/userlibraries/Arduino_ConnectionHandler/src/Arduino_ConnectionHandler.h:26:34: fatal error: Arduino_DebugUtils.h: No such file or ...
2
votes
5
answers
399
views
Break a big file into smaller files
I had a really big .ino file and I decided to break it down into sub-files.
So I had the .ino file, the globals.h file and the functions.h file.
I moved all the global vars and functions to their ...
4
votes
1
answer
308
views
Ethernet library compilation error
I'm trying to connect my Arduino to the internet, but my Ethernet connection config code fails when I try to verify it, and I'm not sure why.
I'm using an Ethernet shield and have installed the ...
-1
votes
2
answers
184
views
I cannot resolve the errors with attachInterrupt() (error: invalid use of non-static member function) [duplicate]
I have been trying for days to get this code to work, but I cannot find a solution. Can anyone please help me find what I am missing here?
My sketch:
#include <ControlInterrupt.h>
const int ...
-2
votes
1
answer
228
views
Some of my <include> statements do not work [closed]
I'm trying to include the thing...
#include <BLEDevice.h>
#include <BLEServer.h>
#include <BLEUtils.h>
#include <BLE2902.h>
BLEServer* pServer = NULL;
...
0
votes
1
answer
98
views
ATtiny25 - assembly - BOD disable for sleep mode - error [closed]
If I understood the AVR instruction manual correctly, the ATtiny 25 can disable the BODlevel2 fuse by software, but when compiling with Studio 7 (version 7.0.132), I get the error "Undefined ...
2
votes
1
answer
468
views
Problem compiling sketches for the arduino wavgat uno R33
I am configuring the arduino IDE to be able to compile and upload sketches for the arduino wavgat uno R3. I have installed the Arduino IDE, as well as the required drivers for the board. I also have ...
2
votes
2
answers
2k
views
Own type definition using a struct does not name a type
I need to initialize several buttons and LEDs connected to my Arduino. To store data related to an individual button or LED, I decided to define my own data type using two different structs. One for a ...
5
votes
1
answer
1k
views
Library not found when using the arduino-cli command (although working with the Arduino IDE)
I have a sketch which I can upload without problem with the Arduino IDE. I installed the arduino-cli Version: 0.28.0 Commit: 06fb1909 Date: 2022-10-18T15:53:04Z. I want to compile and upload a code ...
0
votes
3
answers
659
views
How to capture the compilaton output to a text file in Windows?
I am trying to capture the verbose output of the compilation to get it into a text file. I am using the IDE 1.8.12 running on Windows 10. I have tried looking for a right mouse button context menu, ...
1
vote
1
answer
919
views
Add library to CLion project
I have a new project created with PlatformIO in CLion. I've copied the Servo-1.1.8 library into the include directory.
#include <Arduino.h>
#include "Servo-1.1.8/src/Servo.h"
Servo ...
0
votes
4
answers
1k
views
What should I do with stackOverflow in compile error?
I don't have port, but when I want to compile my code (even empty files),
I encounter this error:
Sketch uses 444 bytes (1%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 ...