I programmed my code in Linux and it is compiled in Linux platform, recently, I have imported the code in visual studio 2017 enterprise under cross-platform project. my remote builder is the machine which the code had been compiled on it. but when trying to build the project by VS, it could not find some header files such as or or etc. and build would be failed.
I found that VS paths for includes files (VC\Linux\include\usr\include\c++\5 and etc) do not contain the missing header files. But Microsoft community express that this missing just cause IntelliSense to malfunction and code must complied on remote builder by VS!!
#include <errno.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
.
.
.
int main(int argc, char **argv)
{
char device_string[1000];
char * reordered;
BIO *bio, * b64;
BUF_MEM * b64buff;
...
}
Error (active) E1696 cannot open source file "unistd.h" Hardware-Check
etc.