什么是%(AdditionalDependencies)宏? [英] what is %(AdditionalDependencies) macro?

查看:190
本文介绍了什么是%(AdditionalDependencies)宏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在projectProperties-> linker->其他依赖项中,我有以下一行:

At projectProperties->linker->Additional Dependencies i have following line:

kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)

什么是%(AdditionalDependencies)?我在哪里可以定义它?

What is %(AdditionalDependencies) ? Where i can define it?

推荐答案

Visual Studio允许您使用

Visual Studio lets you use Property Sheets. Your project can have various configurations, which can have properties from any/all of your Property Sheets, plus locally defined properties.

例如,在一个最近的项目中,我创建了以下属性表:1)通用,2)32位,3)64位,4)调试,5)发布.

For example, on one recent project, I created the following property sheets: 1) common, 2) 32 bit, 3) 64 bit, 4) Debug, 5) Release.

给定的配置(例如32位英语发布版本)将具有以下组合:1 + 2 + 5 +特定于属性的英语"定义.

A given configuration (e.g., 32-bit English Release build) would have a combination of those: 1 + 2 + 5 + property-specific "English" definition.

您看到的宏用于我是否使用属性表中的属性以及其他属性"或是否完全覆盖属性并忽略属性表".

The macro you're seeing is used for "do I use properties from the property sheet plus additional properties" or "do I override the properties entirely and ignore the property sheets."

这是一种技巧,可以在第一次设置时进行正确设置,但实际上可以简化维护多个项目设置的过程.

It's kind of a trick to set these up correct the first time, but it really simplifies maintaining multiple project settings.

这篇关于什么是%(AdditionalDependencies)宏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆