本文介绍了将GDAL纳入MSVS 2008 C ++项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用python中的GDAL进行实验,并且在使用地形分析方面取得了很大的成功。我的公司想知道GDAL是否可以在Visual Studio中使用,因为它是他们的主要平台。

I've been experimenting with GDAL in python and have had some great success in it's use for terrain analysis. My company wants to see if/how GDAL can be used in Visual Studio, as it is their primary platform.

我已经下载并安装了GDAL v1.8根据从源构建中的发现的说明我是MSVS的新手而不是确定如何在新项目中包含必要的标题以使用GDAL库。

I've downloaded and installed GDAL v1.8 in accordance with the instructions found here under "Building from Source" I'm new to MSVS and not sure how to include the necessary headers to utilize the GDAL libraries in a new project.

如何包含库?非常感谢您的帮助!

How do I include the libraries? Your help is much appreciated!

推荐答案

如果您问如何在新的Visual Studio项目中指定GDAL包含路径,那么您可以在。

If you are asking how to specify the GDAL include path in new Visual Studio projects, then you can do so under "C/C++ > General > Additional Include Directories".

如果有任何要链接的库,那么您可以在。

Should there be any libraries to link to, then you can specify these under "Linker > Input > Additional Dependencies".

这两个设置都可以在项目的属性页面中找到。

Both of these settings can be found in your project's properties page.

这篇关于将GDAL纳入MSVS 2008 C ++项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 22:49