Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Like the title mentioned.
e.g
Project settings/configure properties/Linker/general/additional Library Directories->%(AdditionalLibraryDirectories)

But many properties use variable "$(SourcePath)",so what's the different between them.(%(var)<->$(var))


BTW,How can i determine the %(AdditionalLibraryDirectories) 's value?

regards!
Posted
Updated 12-Feb-15 22:50pm
v2

1 solution

These variables are all declared in the Macros section in the project's properties. You can see what they are set to. Similarly with AdditionalLibraryDirectories.
 
Share this answer
 
Comments
jiazhiqiang 24-Feb-15 9:36am    
so what's the different between them.(%(var)<->$(var))
Richard MacCutchan 24-Feb-15 9:53am    
I have never bothered to find out. Maybe the VS Help will explain it.
jiazhiqiang 25-Feb-15 20:02pm    
no where to find it in vs help.
But the reality is the Macros section really contain both %(var) ,$(var).
thanks anyway.
Richard MacCutchan 26-Feb-15 4:29am    
I have just had another look at these and it would appear that:
The the variables preceded by the $ sign are global variables; that is they are common to each section of the project.
Those preceded by the % sign apply only to that section of the project being checked. For example Compiler, Linker etc.
jiazhiqiang 26-Feb-15 4:48am    
thanks!so kind of you!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900