Closed hardillb closed 2 years ago
Hi @hardillb,
You'll need to use:
extern "C" {
#include "pico/lorawan.h"
}
in your application for now in your main.cpp
file for now, I'll look into adding this in pico/lorawan.h
.
Thanks, that now links.
Will have a proper play tonight.
Cool, PR https://github.com/ArmDeveloperEcosystem/lorawan-library-for-pico/pull/20 created for this.
Closing this as PR #20 has been merged now.
Hi, I'm trying to build a custom project using this project as a library. I followed the instructions in #11 and while everything compiles I'm having problems at the link stage.
I've run
make VERBOSE=1
and the g++ command has the object file for lorawan.c in the list of files to link and running objdump shows the symbols in the file so I'm at a bit of a loss.All my code is checked in here: https://github.com/hardillb/lora-sensor-pico
Expects pico-sdk and pimaroni-pico checked out next to the project
Any suggestions welcome.