Questions tagged [linker]
In computing, a linker or link editor is a computer utility program that takes one or more object files generated by a compiler or an assembler and combines them into a single executable file, library file, or another 'object' file.
11 questions
1
vote
0
answers
117
views
Linker missing using Arduino IDE
I use the Arduino IDE 1.8.5 and it seems the linker disappeared. The error messages are:
arm-none-eabi-g++: warning: {compiler.optimization_flags}: linker input file unused because linking not done\
...
3
votes
1
answer
341
views
override pinMode, digitalWrite and digitalRead
I am using the ESP32 Arduino Framework and I have some GPIO expanders attached via I²C. They work fine and I now want to map some unused pin numbers to them so I can used my custom pin numbers in ...
0
votes
1
answer
86
views
Inconsistent behavior of include statements?
This question deals with fonts. Well, actually, singular include files with constants that form bitmap fonts or images for LCD or OLED displays, such as this one: https://github.com/ThingPulse/esp8266-...
1
vote
2
answers
3k
views
Undefined reference to function in custom library
Hello I am making a private Arduino library but am having trouble understanding how it is linked. Why does this h file work, but when I move the definition of board_led to a matching c file, it throws ...
-1
votes
1
answer
113
views
Initializing an object as class member resulting in linking error?
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 ...
1
vote
1
answer
72
views
Libraries are not linked
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 ...
1
vote
1
answer
344
views
Program size optimization
I am trying to spare a few bytes of program size.
I faced a problem which I cannot understand and I hope somebody will help.
Look at this empty sketch, pleas. It takes just 444 bytes:
void setup()
{
}
...
2
votes
1
answer
3k
views
ld.exe:linker_script.ld:138 cannot move location counter backwards | ArduinoFFT Error
Board: Arduino Nano 33 BLE Sense
I'm pulling PCM data from an onboard microphone and running it through the arduinoFFT library (version 1.5.6) to obtain a spectrogram. Since the arduinoFFT library ...
0
votes
1
answer
1k
views
Splitting up code in multiple files causing `multiple definition` and `undefined reference` error
I have the following very basic program that reads MPU6050(accelerometer and gyroscope) sensor using the I2C library, and prints the sensor information. This program works as expected.
#include <...
0
votes
1
answer
1k
views
How to create large progmem arrays and not annoy the linker
I have a rather complex project (PlatformIO, but I've also had this happen in the vanilla IDE) with several nested includes.
Let's say that there are three files and a main sketch.
The main sketch ...
1
vote
1
answer
622
views
cant figure out how to fix this compile error
evrything worked for a bit and changed to much to get it working again. dont really understand the error.
[![C:\Users\bavob\AppData\Local\Temp\ccyfrkaL.ltrans0.ltrans.o: In function `loop':
C:\Users\...