I’m trying to link an external library (librtlsdr, as downloaded from homebrew) and am having some problems. The error I’m getting is:
Undefined symbols for architecture x86_64: "_rtlsdr_get_device_count", referenced from: ofApp::setup() in ofApp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Though this error happens for every function in
librtlsdr. I am able to use the library in standalone c++ files, by doing e.g.
g++ -Wall my_program_name.cpp -lrtlsdr, so I’m assuming there is a super straight-forward solution, but so far nothing has worked for me unfortunately.
Is there a simple way to link c++ libraries in openFrameworks? I’m on OSX and generally use
make to compile, so would prefer a solution based around that, but am happy to use Xcode if that is what this requires. I’m on OSX
10.12.6 Sierra running openFrameworks
Thank you so much in advance!