Sunday, 15 March 2015

c++ - VS 2010 - #pragma comment (lib, XX) works, Additional Dependencies doesn't. Why? -



c++ - VS 2010 - #pragma comment (lib, XX) works, Additional Dependencies doesn't. Why? -

it seems no matter do, can't additional dependencies link static library.

this static library created project made. i've tried adding reference, forcing project dependencies, double checking path lib correct. thing seems create unresolved external linker errors disappear #pragma comment (lib, xx).

does know why is? i'd much avoid #pragma comment , have added additional dependency.

thanks!

one more thing: create sure project create lib got built first, i.e. create sure libraries created before linking project.

c++ visual-studio-2010 visual-studio visual-c++ pragma

No comments:

Post a Comment