tftelkamp / single_chan_pkt_fwd

Single Channel LoRaWAN Gateway
Other
235 stars 310 forks source link

Compilation problem #10

Closed Twoaster closed 7 years ago

Twoaster commented 7 years ago

Hi all, I am new on the LoRa/rpi world and I am trying to run this example. I have all the files cloned to my rpi 3 and the wiringPi library installed. I´m trying to run the following code:

g++ -o LoraWan main.cpp -lwiringPi -lstdc++

but, intead of a clean compilation, i get the following error:

main.cpp:(.text+0x9b8): undefined reference to `bin_to_b64(unsigned char const*, int, char*, int)'
main.cpp:(.text+0xf80): undefined reference to `bin_to_b64(unsigned char const*, int, char*, int)'

Do you guys know how to fix this?

Thanks

Twoaster commented 7 years ago

Solved it.... I forgot to put the path to the base64.c file.

g++ -o LoraWan main.cpp -lwiringPi -lstdc++ <path>