question

VinayKumarL-2425 avatar image
0 Votes"
VinayKumarL-2425 asked RLWA32-6355 commented

Linking of static library built with VS2019 to an application which is being built with VS2015

The requirement is that the static library built with VS-20XY needs to be linked successfully for building an application using either VS2015, VS2017 or VS2019.
What is suitable version of VS-20XY?(considering End of life and version compatibility)
Can static library built with VS2019 be linked to an application which is being built with VS2015?

windows-apivs-generalvs-setupvs-msbuildwindows-app-sdk-general
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


Did you find the sources of this library?

0 Votes 0 ·

1 Answer

RLWA32-6355 avatar image
1 Vote"
RLWA32-6355 answered RLWA32-6355 commented
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Could you please elaborate more on compatibility order w.r.t different VS versions?
I believe object files created using VS2015 have backward compatibility support for VS2017, VS2019, but vice-versa is not true(i.e object file created using VS2019 cannot be linked to an application which is being built with VS2015).
Is the above understanding correct?

0 Votes 0 ·

According to the Microsoft guidance a static library built with VS2019 can be linked with modules created by an earlier version of VS (e.g., 2017, 2015) as long as the toolset used to create the VS2019 static library does the linking.

1 Vote 1 ·