简体   繁体   English

如何访问外部库和头文件VC10

[英]How to get access to external libraries and header files VC10

I'm going to get a book that uses Xerces C++. 我将得到一本使用Xerces C ++的书。 I'm currently using VS 2010 ultimate, so the program doesn't miss any features. 我目前正在使用VS 2010终极版,所以该程序不会错过任何功能。 I've downloaded the precompiled binaries for windows x86 VC10. 我已经下载了windows x86 VC10的预编译二进制文件。 My question is what do I have to do to my environmental variables and files to be able to have Visual studio import the header files ie #include . 我的问题是我需要对环境变量和文件做些什么才能让Visual Studio导入头文件,即#include。 I have no experience linking external libraries, so I need a simple explanation. 我没有连接外部库的经验,所以我需要一个简单的解释。

Right click on your project -> Properties -> C/C++ -> General -> Additional Include Directories 右键单击您的项目 - >属性 - > C / C ++ - >常规 - >其他包含目录

Include the path of Xerces include files. 包括Xerces包含文件的路径。

For Lib Properties Linker -> General -> Additional Library Directories 对于Lib Properties Linker - > General - > Additional Library Directories

Include the path of Xerces lib files. 包括Xerces lib文件的路径。

In Linker -> General -> Input -> Additional dependencies 在链接器 - >常规 - >输入 - >附加依赖项

Add the libs required for linking. 添加链接所需的库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM