Quantcast

"Unknown Microsoft compiler"

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

"Unknown Microsoft compiler"

Edouard Tallent
Hi all.

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>InitializeBuildStatus:
1>  Touching "Debug\IRswap.unsuccessfulbuild".
1>ClCompile:
1>  IRswap_main.cpp
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"
1>
1>Build FAILED.

--
http://quantcorner.wordpress.com

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: "Unknown Microsoft compiler"

Francis Duffy
Hi Edouard,
 
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).
 
#define __STR2__(x) #x
#define __STR1__(x) __STR2__(x)
#define __PPOUT__(x) #x ": " __STR1__(x)
 
#if defined(_MSC_VER)
    #pragma message(__PPOUT__(_MSC_VER))
#endif
 
int main() {
    return 0;
}
 
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.
 
Regards,
Francis.
 
 
On Sat, Oct 13, 2012 at 1:31 PM, Edouard Tallent <[hidden email]> wrote:
Hi all.

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>InitializeBuildStatus:
1>  Touching "Debug\IRswap.unsuccessfulbuild".
1>ClCompile:
1>  IRswap_main.cpp
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"
1>
1>Build FAILED.

--
http://quantcorner.wordpress.com

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Loading...