Hi, I’m having problems when trying to compile the following c++ file, which is just a test for the library:
#include <astra/astra.hpp>
int main(int argc, char** argv){
astra::initialize();
astra::terminate();
return 0;
}
I’m using these commands to compile:
g++ -std=c++11 -I/opt/astra/include -o main main.cpp
And the result is the following output:
g++ -std=c++11 -I/opt/astra/include -o main main.cpp
/tmp/ccCBySQc.o: In function astra::initialize()': main.cpp:(.text._ZN5astra10initializeEv[_ZN5astra10initializeEv]+0x5): undefined reference to
astra_initialize’
/tmp/ccCBySQc.o: In function astra::terminate()': main.cpp:(.text._ZN5astra9terminateEv[_ZN5astra9terminateEv]+0x5): undefined reference to
astra_terminate’
collect2: error: ld returned 1 exit status
Makefile:2: recipe for target ‘all’ failed
make: *** [all] Error 1
Thanks in advance for anyone that can help.