Closed fcarlier closed 8 years ago
'write digital' and 'pwm' compile, but not 'Example with an LCD display, a rotary dial and a push button'
'''
lcd.o: In function GPIO::HitachiLCD::~HitachiLCD()': lcd.cpp:(.text._ZN4GPIO10HitachiLCDD2Ev[_ZN4GPIO10HitachiLCDD5Ev]+0xac): undefined reference to
GPIO::HitachiLCDBase::~HitachiLCDBase()'
'''
oups ;) lcd.cpp erase accidently
Hello,
I modify Makefile with : ''' /opt/crosstool-ng/armv7-rpi2-linux-gnueabihf/bin/armv7-rpi2-linux-gnueabihf-g++ -I./include -Wall -O2 -std=c++11 -pthread -c -o demo.o demo.cpp /opt/crosstool-ng/armv7-rpi2-linux-gnueabihf/bin/armv7-rpi2-linux-gnueabihf-g++ -I./include -L./ -L./libcppgpio.so.1.0.0 -lpthread -lcppgpio -o demo demo.o ''' but : ''' demo.o: In function
lcdtest()': demo.cpp:(.text+0x3c): undefined reference to
GPIO::HitachiLCD::HitachiLCD(unsigned int, unsigned int, std::string const&, unsigned int, bool, bool)' demo.cpp:(.text+0xd8): undefined reference toGPIO::HitachiLCD::write(unsigned int, unsigned int, std::string const&, unsigned int)' demo.cpp:(.text+0x21c): undefined reference to
GPIO::HitachiLCD::scroll(bool)' demo.cpp:(.text+0x250): undefined reference toGPIO::HitachiLCD::home()' demo.cpp:(.text+0x288): undefined reference to
GPIO::HitachiLCD::write(std::string const&)' ...... '''' THX