New answers tagged variables
2
votes
Multiple definition error in STM32CubeIDE
If you want global variable accessible from everywhere you include global.h, you'll need declaration of that variable in header (declatation only):
// globals.h:
extern uint8_t vol[8];
Anywhere else ...
Top 50 recent answers are included
Related Tags
variables × 159arduino-uno × 39
programming × 19
c++ × 18
array × 14
serial × 11
memory × 11
float × 9
esp8266 × 7
arduino-mega × 7
c × 7
sketch × 6
eeprom × 6
memory-usage × 6
data-type × 6
class × 6
functions × 6
string × 5
sram × 5
arduino-ide × 4
led × 4
interrupt × 4
button × 4
display × 4
sensors × 3