Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/153.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在带有vs2017的linux子系统上包含标头 我想在Windows 10中的Linux子系统(Ubuntu)中使用VS2017在C++程序中使用C++ OpenCaseDead(奥西)库。_C++_Visual Studio_Ubuntu_Windows Subsystem For Linux_Opencascade - Fatal编程技术网

无法在带有vs2017的linux子系统上包含标头 我想在Windows 10中的Linux子系统(Ubuntu)中使用VS2017在C++程序中使用C++ OpenCaseDead(奥西)库。

无法在带有vs2017的linux子系统上包含标头 我想在Windows 10中的Linux子系统(Ubuntu)中使用VS2017在C++程序中使用C++ OpenCaseDead(奥西)库。,c++,visual-studio,ubuntu,windows-subsystem-for-linux,opencascade,C++,Visual Studio,Ubuntu,Windows Subsystem For Linux,Opencascade,我将OCE编译到linux子系统中;我还有在windows中编译的OCE二进制文件 当我试图在我的代码中包含来自OCE的头时(#include如果没有一个简单的示例,就无法真正调试您的项目,但以下内容可以帮助您了解发生了什么: 在VS2017中,右键单击项目,选择属性。在C/C++下选择命令行。 在这里,您可以看到IDE用来编译源文件的命令行。请检查所有/I语句,并确保其中一个语句指向Adapter2D_Curve2d.hxx所在的位置。您能否根据需要在问题中提供一个独立的路径。对不起,如果不清

我将OCE编译到linux子系统中;我还有在windows中编译的OCE二进制文件


当我试图在我的代码中包含来自OCE的头时(
#include

如果没有一个简单的示例,就无法真正调试您的项目,但以下内容可以帮助您了解发生了什么:

在VS2017中,右键单击项目,选择属性。在C/C++下选择命令行。
在这里,您可以看到IDE用来编译源文件的命令行。请检查所有/I语句,并确保其中一个语句指向
Adapter2D_Curve2d.hxx
所在的位置。

您能否根据需要在问题中提供一个独立的路径。对不起,如果不清楚,我编辑了I checked-I语句,路径已更正,但我仍然有错误。我已使用boost库编辑了带有小地图项目说明的问题
error : Adaptor2d_Curve2d.hxx: No such file or directory
error : #include <Adaptor2d_Curve2d.hxx>
error :          ^~~~~~~~~~~~~~~~~~~~~~~
error : compilation terminated.
// from oce
#include <Adaptor2d_Curve2d.hxx>

int main()
{
   printf("hello from CAO3DConverterTestApp!\n");
   return 0;
}
$(ProjectDir)..\oce-0.18.3\include\oce
$(RemoteRootDir)..\oce\build\inc
error : any.hpp: No such file or directory
error :  #include <any.hpp>
error :           ^~~~~~~~~
error : compilation terminated.