Linking against static lib with VS2015

  • Thread starter Thread starter Pittsburgh
  • Start date Start date
P

Pittsburgh

Guest
I am using a static lib built with the 2015 toolset, building my DLL using 2017. In that configuration - and hoping that is supported - I get linker errors stating it can't find symbols exported from the static lib, I am linking against. When I switch to building my DLL using the 2015 toolset, which seemed like the obvious remedy to me, I get the following error from the linker:

LINK: fatal error C1007: unrecognized flag '-Ot' in 'p2'

I don't find anywhere I pass in -Ot when I look at the commandline in the property pages of the project in VS.

Reading the docs online, it seems that I should be able to link with the 2017 toolset against a static lib created with the 2015 toolset. Is that correct? If not, how do I get rid of that unrecognized flag error?

Thanks,

Continue reading...
 
Back
Top