0

So I am trying to set the static lib projects for my main project so that I don't need to specify the folder with the .lib file. I read here how to do it.But when I set "Framework and References" -> "Link Library Dependencies" to "True" and click "Apply" it gets reset to "False". Why?

UPDATE:

As Hans Passant explained,those settings exist only for a mixed mode.But what I don't understand then,why in my case as long as "Link Library Dependencies" was set to false the libs wouldn't link automatically?Finally,btw,I was able to set it to True by removing and adding those libs back as reference and Setting Linker->General->Link Library Dependencies -YES .Now I don't need to explicitly specify lib paths in linker for these libs.But again,I am not sure that's the way to go?

Community
  • 1
  • 1
Michael IV
  • 11,016
  • 12
  • 92
  • 223
  • Is the static library set as a dependency of the exe or dll main project? – drescherjm Nov 26 '14 at 15:14
  • It is static library project which I set dependent to the exe project via Properties - > References – Michael IV Nov 26 '14 at 15:22
  • This is by design, the setting only is meaningful for a mixed-mode assembly. Avoid asking an XY question, explain the actual problem you are trying to solve. If it links the .lib correctly, the intent, then you don't have a problem. – Hans Passant Nov 26 '14 at 23:51

0 Answers0