How to write a program using Visual C++ 2015?

I want to write a C++ program using the orbbec astra s camera.
At first I copy the following program as

#include <astra/astra.hpp>

#include
#include

int main(int argc, char** argv)
{
std::cout << “hit enter to exit program” << std::endl;
std::cin.get();

return 0;
}

When I debug, error come out.
Please help to solve thank.

Severity Code Description Project File Line Suppression State
Error (active) cannot open source file “astra/astra.hpp” Win32Project1 c:\Users\HP User\Desktop\Win32Project1\Win32Project1\Win32Project1.cpp 4

Hello ThatLin,

in your case i would just use one of the SFLM sample, and modifie it the way you need.Use the new SDK AstraSDK-0.5.0-vs2015-win 64 or 32.

1 Like