JoachimSchurig / CppGPIO

C++14 GPIO library for embedded systems on Linux
99 stars 27 forks source link

Undefined Refrence to any "Keywords" like Digitalout #16

Closed roko1112 closed 10 months ago

roko1112 commented 1 year ago

I folowed the instalation steps exactly and when i compile without any executable code it works but as soon as i useanything from the LIB it gives me the Undefined refrence to "....". But for example when i do something like

DigitalOut out()

it douesnt givew me an error but when i input an int like

DigitalOut out(29)

it gives the error.

Btw im using the pi 3b

roko1112 commented 1 year ago

sry for bad spelling

roko1112 commented 1 year ago

ok, on further investigation I found the same error in the library,

**on lines 325 and 330 I get the same type of error but with "GPIO::GPIOBase::gpio_addr" it says == "undefined reference to "GPIO::GPIOBase::gpio_addr""

the