2013-04-05 71 views
2

我已经创建了一个空的Visual C++项目,并添加一个main.cpp,如:应用属性表清空C++的Visual Studio项目

#include <mylib.h> 

int main() { 
    abc(); 
    return 0; 
} 

abc()是一个功能mylib说。要使用mylib,以下设置需要指向正确的位置。

Configaration Setting -> VC++ Directories -> Executable Directories 
Configaration Setting -> VC++ Directories -> Include Directories 
Configaration Setting -> VC++ Directories -> Library Directories 
Configaration Setting -> Linker -> Input -> Additional Dependencies 

这是非常繁琐的做多个项目,所以我想为这些设置设置属性表。当我向该项目添加属性表时,会生成以下XML存根:

<?xml version="1.0" encoding="utf-8"?> 
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 
    <ImportGroup Label="PropertySheets" /> 
    <PropertyGroup Label="UserMacros" /> 
    <PropertyGroup /> 
    <ItemDefinitionGroup /> 
    <ItemGroup /> 
</Project> 

但属性表的属性编辑器是空白的?

enter image description here

我只是想添加所需的外部库设置到项目中的简单的解决方案?

+0

哪个VS版本? – Angew 2013-04-05 08:42:34

+0

你如何打开这个编辑器?你应该在Soulution Explorer中右键单击main.cpp,然后选择属性... – 2013-04-05 08:43:37

+0

@DaveChandler要打开属性表的属性编辑器,右键单击源文件是不行的。 – Angew 2013-04-05 08:46:09

回答

3

为了编辑属性表

查看 - >物业经理

在该视图中,打开属性页和双修改设置一下你的设置文件。只是不要使用属性窗口

+0

感谢您的帮助! – 2013-04-05 09:31:02

相关问题