In auto_link.hpp, to define QL_LIB_TOOLSET you condition on the microsoft predefined macro _MSC_VER. The value of _MSC_VER for your version of visual studio is probably not accounted for here. To find your value of _MSC_VER (I guess that it is 1700), compile the following code snippet and the value of _MSC_VER should be in the build output (got this tip here).
Then add the two lines (with plus signs) below to auto_link.hpp:
#elif (_MSC_VER == 1600) # define QL_LIB_TOOLSET "vc100"
+ #elif (_MSC_VER == <your value of _MSC_VER here>) + # define QL_LIB_TOOLSET "<your value of $(PlatformToolset) here>" #else
You can find your value of $(PlatformToolset) by right-clicking on any of the projects, and in properties -> Configuration Properties -> General, select the drop down box on Output Directory and select Edit -> Macros. This will give you a list of Macros and their values. Scroll down to $(PlatformToolset) to see your value. Again, I guess that it is vc110.
I hope that this works but I have no way of testing it as I am using visual studio 2010.
On Sat, Oct 13, 2012 at 1:31 PM, Edouard Tallent <[hidden email]> wrote:
I am encountering difficulties with QL 1.2.1 with Visual Studio 2011 Beta (Windows 32 bits)
I get a "Unknown compiler version" error message as I try to compile.
Following MS11 suggestion, I 'updated' my version of QL. Everything went well.
I don't know where to go from here !?
Any help would be appreciated.
Below, I paste the error message I get.
1>------ Build started: Project: IRswap, Configuration: Debug Win32 ------
1>Build started 13/10/2012 14:06:34.
1> Touching "Debug\IRswap.unsuccessfulbuild".
1> Unknown compiler version - please run the configure tests and report the results
1>c:\users\édouard\documents\quantlib-1.2.1\ql\auto_link.hpp(42): fatal error C1189: #error : "unknown Microsoft compiler"