I have a C++ project which I'm trying to compile, and it references functions which are defined in a pre-compiled library file.
When I try to build my project I get the error:
LINK : fatal error C1047: The object or library file 'offending_library.lib' was created with an older compiler than other objects; rebuild old objects and libraries
The error message is clear enough, but I don't have the sources for the old objects so need to look at using the old compiler instead. I have researched other questions showing how I can install older toolsets, e.g.:
How to select an older compiler in Microsoft Visual C++ 2019?
Using a v90 Platform toolset on VisualStudio 2010
It seems that sometimes this can be done without installing the relevant version of Visual Studio (which I'd prefer as apparently advice is to remove any existing installs and re-install them in chronological order).
However, first I need to know which "older compiler" was used. Is there a way to determine that?