Hi,
I am new to Segger Embedded Studio and have a problem. I am trying to make a lcd library which contains of a .cpp-file and a .h-file. When I include only lcd.h in main.cpp it can´t compile. (Receive: undefined reference to `LCD::init(unsigned char)' error). But when I include lcd.cpp also, everything work fine. I think it is only a setting to also compile cpp files, but I cant find it.
Im using gcc with NRF52832 devkit.
lcd.h:
Display All
lcd.cpp:
main.cpp:
I am new to Segger Embedded Studio and have a problem. I am trying to make a lcd library which contains of a .cpp-file and a .h-file. When I include only lcd.h in main.cpp it can´t compile. (Receive: undefined reference to `LCD::init(unsigned char)' error). But when I include lcd.cpp also, everything work fine. I think it is only a setting to also compile cpp files, but I cant find it.
Im using gcc with NRF52832 devkit.
lcd.h:
C Source Code
lcd.cpp:
main.cpp: