Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is %(AdditionalDependencies) macro?

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)

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

like image 847
Neir0 Avatar asked Dec 24 '11 19:12

Neir0


People also ask

How do I add external dependencies in Visual Studio C++?

Just right click on your project and select properties. There you will get another set of options under 'Configuration Properties' . Go to C/C++ and under that -> General -> Additional Include Directories ( where all the header files of third party is there ).

How do I add a library to Visual Studio?

Right-click on the solution in Solution Explorer and select Add > New Project. On the Add a new project page, enter library in the search box. Choose C# or Visual Basic from the Language list, and then choose All platforms from the Platform list. Choose the Class Library template, and then choose Next.


1 Answers

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.

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

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.

like image 169
Michael Avatar answered Oct 22 '22 00:10

Michael