【OCC新建一个单文档】opencascade-7.1.0 + VS2015 配置

1、下载OCC源码包+库
动态库一般在:C:\OpenCASCADE7.1.0-vc10-64\opencascade-7.1.0\win64\vc10\bin

2、打开VS2015,创建单文档,配置环境
(1)C/C++->常规->附加包含目录,添加C:\OpenCASCADE7.1.0-vc10-64\opencascade-7.1.0\src 和C:\OpenCASCADE7.1.0-vc10-64\opencascade-7.1.0\inc

(2)链接器->常规->附加库目录,添加C:\OpenCASCADE7.1.0-vc10-64\opencascade-7.1.0\win64\vc10\libd和C:\OpenCASCADE7.1.0-vc10-64\opencascade-7.1.0\win64\vc10\lib

3、在stdafx.h上添加OCC的头文件

pragma warning( disable : 4244 ) // Issue warning 4244

include “Standard_ShortReal.hxx”

pragma warning( default : 4244 ) // Issue warning 4244

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

include

你可能感兴趣的:(【OCC新建一个单文档】opencascade-7.1.0 + VS2015 配置)