How do I simply compile and run?

I made an /apps folder in the AstraSDK folder, where I created a main.cpp. When I try to compile by running:

clang++ -std=c++11 -stdlib=libc++ -I /Users/Scott/Documents/furi/AstraSDK/include main.cpp

I get the errors:
Undefined symbols for architecture x86_64:
"_astra_initialize", referenced from:
      astra::initialize() in main-7d84ba.o
  "_astra_terminate", referenced from:
      astra::terminate() in main-7d84ba.o
2 Likes

I do have the exact same error. Any ideas?

System is OSX

I think I solved this by adding the compiled libraries to the clang++ command as well:

clang++ -std=c++14 -stdlib=libc++ -I /path/astra/AstraSDK-0.5.0-20160426T102621Z-darwin-x64/include main.cpp /path/astra/AstraSDK-0.5.0-20160426T102621Z-darwin-x64/lib/libastra_core.dylib -Wl,-rpath,/path/astra/AstraSDK-0.5.0-20160426T102621Z-darwin-x64/lib/

Don’t know whats the best and general good way though