Skip to main content

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
65 views

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 ...
Sod Almighty's user avatar
1 vote
1 answer
2k views

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 - ...
PalyPvP's user avatar
  • 21
1 vote
0 answers
47 views

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 ...
Tomáš Zato's user avatar
0 votes
1 answer
214 views

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 ...
Yug Ahuja's user avatar
0 votes
1 answer
98 views

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 ...
Laur Hus's user avatar
-1 votes
2 answers
184 views

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 ...
TheCodeGeek's user avatar
-2 votes
1 answer
228 views

I'm trying to include the thing... #include <BLEDevice.h> #include <BLEServer.h> #include <BLEUtils.h> #include <BLE2902.h> BLEServer* pServer = NULL; ...
The Void's user avatar
2 votes
1 answer
468 views

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 ...
Sorenai de's user avatar
2 votes
5 answers
399 views

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 ...
user1584421's user avatar
  • 1,435
0 votes
0 answers
86 views

I am trying to use the Adafruit MMA8451 accelerometer with an attiny85. The Adafruit library uses Wire which doesn't work on the attiny so I used the ATTinyCore board files which have been modified to ...
Struan Lawrie's user avatar
5 votes
1 answer
1k views

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 ...
ecjb's user avatar
  • 165
1 vote
0 answers
125 views

It is s a bit complicated to ask such question, but what may be the reason that one time compilation passes and other fails without any changes in code? surely debugging this way is very hard (one ...
guyd's user avatar
  • 1,049
2 votes
1 answer
128 views

I know this error is specific to this particular family of sketches, but please bear with me; when I try to compile this against an Arduino Nano/Uno (with Arduino IDE 1.8.15) the compiler complains ...
apophene's user avatar
4 votes
1 answer
308 views

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 ...
KostR's user avatar
  • 41
-1 votes
1 answer
113 views

I'm a little dumbfounded as to why this isn't working. I keep getting the following linker error: In file included from src\ac.cpp:1:0: src/ac.h:9:21: error: expected identifier before numeric ...
Jeebus's user avatar
  • 3
0 votes
1 answer
4k views

For a larger sketch, I have separated a chunk of code in a separate .cpp file #include "msg.h" #include <Arduino.h> #include <HTTPClient.h> #include <ArduinoJson.h> void ...
Zaffresky's user avatar
  • 183
1 vote
1 answer
919 views

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 ...
BanksySan's user avatar
  • 119
1 vote
0 answers
896 views

My Arduino code is not getting uploaded. It gives me "avrdude: ser_open(): can't set com-state for "\.\COM4" error. It worked literally 5 mins ago. now it doesn't work. I updated the ...
Paradox Ninja's user avatar
1 vote
0 answers
272 views

I'm running IDE version 1.8.16 under Windows 10. Frequently I get the error message. The situation is solved only when exiting the IDE. Afterwards the compilation may be finished with or without ...
user1511360's user avatar
1 vote
1 answer
72 views

I created 4 libraries, each in .h and .cpp files, and tested them individually. I kept the project flexibility by defining 3 flags that allow or disallow the usage of the libraries. When integrating ...
user1511360's user avatar
0 votes
1 answer
482 views

I have problem with my esp32 Device and asked one question as you can see below: How to understand the ESP32 is working (Error: Arduino unknown board ...) As it is not fixed, so I am thinking to ...
Soheil Paper's user avatar
1 vote
1 answer
1k views

I'm programming an ATTiny 85 using the Arduino IDE and an Arduino Nano as "Arduino as ISP" to program the ATTiny. I succeeded a week ago and now I want to program a second chip but get the '...
Transistor's user avatar
0 votes
4 answers
1k views

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 ...
dorsa's user avatar
  • 9
1 vote
1 answer
7k views

I am compiling some code I didn't write, and it bombs out with the error message invalid conversion from 'char' to 'const char*' [-fpermissive] on the line if (loginPassword == '\0') loginPassword = &...
Ben Dauphinee's user avatar
1 vote
1 answer
951 views

I want to use c++ data structures such as vectors, arrays, map... in my Arduino sketch. I made sure to add -std=c++11 and -std=gnu++11 in platform.txt, I am still getting the following error message: ...
S.E.K.'s user avatar
  • 53
1 vote
0 answers
218 views

I am working on a personal project in which I need to collect accurate data from the MPU6050 using an Arduino Due. I can interface and read data from the MPU using the SLC and SDA pins and the "...
Daniel G's user avatar
3 votes
1 answer
2k views

While the question here gives some hints, the solution provided there does not directly work on the Due, since it uses a different compiler and toolkit. Also, the Due has more than enough flash for ...
PMF's user avatar
  • 1,306
0 votes
3 answers
592 views

I have a main.ino file that contains struct EulerAngles { double roll, pitch, yaw; }; void setup() { EulerAngles angles; angles = anglesCalc(); Serial.print(angles.yaw); } void loop() { ...
Obromios's user avatar
  • 119
0 votes
1 answer
915 views

#include <Adafruit_Fingerprint.h> #include <SoftwareSerial.h> #include <LiquidCrystal.h> uint8_t id; int getFingerprintIDez(); //pin #16 is IN from sensor (GREEN wire) //pin #15 is ...
SASHA SYAZANA 's user avatar
-1 votes
1 answer
60 views

void setup() { Serial.begin(9600); pinMode(13,OUTPUT); } void loop() { if(Serial.available()>0) {s_num =Serial.read();} if(s_num=='0'){ digitalWrite(13,HIGH); delay(100); //the specified time for 0 ...
Abdulrahman's user avatar
0 votes
1 answer
654 views

for (byte i = 0; i < mfrc522.uid.size; i++) { Serial.print(mfrc522.uid.uidByte{i} < 0x10 ? " 0" : " "); Serial.print(mfrc522.uid.uidByte{i}, HEX); content....
Tingkai Yan's user avatar
2 votes
2 answers
2k views

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 ...
albert's user avatar
  • 205
0 votes
0 answers
755 views

i tried compiling a program to upload sensor readings that i connected with my ESP8266 to cloud (in my case, Antares) but i keep getting this error message. Can anyone tell me where the problem is, ...
Edelweis Dwi K. Dewi's user avatar
2 votes
1 answer
302 views

I am using win 8.1 and trying to load Marlin 2.0.x onto Arduino Mega with an attached Ramps 1.4 board fitted with 3 8825 Drivers. Unfortunately everytime I try to compile It concludes with the ...
londonlad's user avatar
1 vote
1 answer
140 views

I found this Haptic Headband project on YouTube (link below) and I am trying to verify the code that was given in the instructions with the Arduino IDE. However, I keep getting the message below and ...
ynava's user avatar
  • 11
1 vote
0 answers
259 views

I was trying to follow this tutorial and ran into a problem compiling on the Arduino IDE with an ESP32 board. https://eloquentarduino.github.io/2019/12/how-to-do-gesture-identification-on-arduino/ I ...
solutionhacker's user avatar
0 votes
3 answers
659 views

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, ...
Louis B.'s user avatar
  • 119
1 vote
1 answer
2k views

I am just trying to set up the U8g2 library to use an OLED. I read through the documentation and tried copying and pasting the code block example for the constructor, but switched out their ...
Kayla's user avatar
  • 21
1 vote
1 answer
3k views

I am a newbie C programmer and I just started with Arduino web editor (Win10-Firefox)to code for a Raspberry Pi (3B) board. RPi is on line via ethernet connection. I tried to compile an example from ...
Ivan Herbots's user avatar
0 votes
1 answer
108 views

#include "connection.h" void setup() { Serial.begin(115200); Funcs::Connect conn; conn.connectWifi(); } void loop() { } then connection.h file: // connection.h namespace Funcs { class ...
Ciasto piekarz's user avatar
0 votes
1 answer
378 views

I've compiled successfully a year ago in Arduino IDE, but lately I'm getting fatal errors: /Users/davidjeffers/Documents/Arduino/libraries/PubSubClient/src/PubSubClient.cpp: At global scope: /Users/...
DavidJ's user avatar
  • 23
1 vote
1 answer
276 views

as Gentoo user I build everything from sources, but I have problem with building toolchain for esp8266. I came up with this script: #!/bin/sh # note: eselect python2 before, because of gcc # ...
urhen's user avatar
  • 111
0 votes
1 answer
716 views

I am relatively new to Arduino and I am trying to code some neo pixels and every time I try to verify my code this error comes up: Arduino: 1.8.12 (Mac OS X), Board: "Arduino Uno" loading ...
Erin Shankland's user avatar
0 votes
2 answers
2k views

I have multiple Arduino Nano boards. I am able to compile or upload code only once. If I try to compile/upload again I get an error: "Error compiling for board Arduino Nano". However there is a ...
Nauris Grinbergs's user avatar
0 votes
1 answer
421 views

#include <SmartInventor.h> void setup() { SmartInventor.DCMotorUse(); } void loop() { // M1, M2, M3 // CW, CCW, STOP // 0-100 // 0-360 SmartInventor.DCMotor(M1, CW, 10); delay(...
user64079's user avatar
-1 votes
1 answer
4k views

Been struggling with this for a few days and I suspect that i have several issues but I cannot find them. Project: Need a serial count that counts by 5-50 and a button interrupt should trigger a ...
pancho22448's user avatar
0 votes
1 answer
63 views

I have a system where an RFID tag can be checked and Its individual 4byte UID will be printed. My task is to check if subsequent tags have the same UID and if not, print “access denied”. I'm assuming ...
Zèro 's user avatar
2 votes
0 answers
420 views

I am trying to use pulse sensor with Arduino Nano 33 BLE sense, but when I verify it, it shows Error compiling for board Arduino Nano 33 BLE. The code is from the pulse sensor website. The code works ...
Syfian Bukhari's user avatar
0 votes
1 answer
2k views

I have an ESP8266 program that used to work but is now failing to compile with this error: C:\...\Arduino\libraries\WiFiManager/WiFiManager.h:25:24: note: in expansion of macro 'PROGMEM' const ...
garson's user avatar
  • 159
1 vote
1 answer
634 views

Please help with this error. Arduino: 1.8.10 (Windows 10), Board: "Arduino Uno" Sketch uses 882 bytes (2%) of program storage space. Maximum is 32256 bytes. Global variables use 9 bytes (0%) of ...
Izak Krige's user avatar