Discussion:
[Quantlib-users] build quantlibXL in Visual Studio
Wenhai Zhang, CLSA
2017-06-16 08:26:53 UTC
Permalink
Hi team,

I tried to build the quantLibXL in Visual Studio 2013. However, I always got the following error during the building process:

C:\Development\boost_1_64_0\boost/type_traits/common_type.hpp(50) : see reference to class template instantiation 'boost::common_type<T1,T2,T...>' being compiled
3>C:\Development\boost_1_64_0\boost/type_traits/detail/mp_defer.hpp(50): fatal error C1001: An internal error has occurred in the compiler.
3> (compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\p1types.cpp', line 192)
3> To work around this problem, try simplifying or changing the program near the locations listed above.
3> Please choose the Technical Support command on the Visual C++

The error is pointed to the following source code in the common_type.hpp:
template<class T1, class T2, class... T>
struct common_type<T1, T2, T...>: type_traits_detail::mp_defer<type_traits_detail::common_type_fold, T1, T2, T...>
{
};


Would you please give me some suggestion to solve this issue? Thanks in advance.

Regards,
Wenhai
The content of this communication is intended for the recipient and is subject to CLSA Legal and Regulatory Notices.
These can be viewed at https://www.clsa.com/disclaimer.html or sent to you upon request.
CLSA is ISO14001 certified and committed to reducing environmental impact.
Eric Ehlers
2017-06-20 18:19:32 UTC
Permalink
Hello,

Any clue as to which line (or file) of QuantLibXL source code triggers
the error?

Google tells me that that error can sometimes be fixed by turning off
optimization.

Regards,
Eric
Post by Wenhai Zhang, CLSA
Hi team,
I tried to build the quantLibXL in Visual Studio 2013. However, I
see reference to class template instantiation
'boost::common_type<T1,T2,T...>' being compiled
fatal error C1001: An internal error has occurred in the compiler.
3> (compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\p1types.cpp',
line 192)
3> To work around this problem, try simplifying or changing the
program near the locations listed above.
3> Please choose the Technical Support command on the Visual C++
template<class T1, class T2, class... T>
type_traits_detail::mp_defer<type_traits_detail::common_type_fold, T1,
T2, T...>
{
};
Would you please give me some suggestion to solve this issue? Thanks in advance.
Regards,
Wenhai
The content of this communication is intended for the recipient and is
subject to CLSA Legal and Regulatory Notices.
These can be viewed at https://www.clsa.com/disclaimer.htmlor sent to
you upon request.
/*CLSA is ISO14001 certified and committed to reducing environmental
impact.*/
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Wenhai Zhang, CLSA
2017-06-20 23:26:38 UTC
Permalink
Hi Eric,

Thanks. I have solved it by turning on the incremental linking.

Regards,
Wenhai

-----Original Message-----
From: Eric Ehlers [mailto:***@reposit.be]
Sent: Wednesday, June 21, 2017 2:20 AM
To: Wenhai Zhang, CLSA <***@clsa.com>; quantlib-***@lists.sf.net
Subject: Re: [Quantlib-users] build quantlibXL in Visual Studio

Hello,

Any clue as to which line (or file) of QuantLibXL source code triggers the error?

Google tells me that that error can sometimes be fixed by turning off optimization.

Regards,
Eric
Post by Wenhai Zhang, CLSA
Hi team,
I tried to build the quantLibXL in Visual Studio 2013. However, I
see reference to class template instantiation
'boost::common_type<T1,T2,T...>' being compiled
fatal error C1001: An internal error has occurred in the compiler.
3> (compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\p1types.cpp',
line 192)
3> To work around this problem, try simplifying or changing the
program near the locations listed above.
3> Please choose the Technical Support command on the Visual C++
template<class T1, class T2, class... T>
type_traits_detail::mp_defer<type_traits_detail::common_type_fold, T1,
T2, T...>
{
};
Would you please give me some suggestion to solve this issue? Thanks in advance.
Regards,
Wenhai
The content of this communication is intended for the recipient and is
subject to CLSA Legal and Regulatory Notices.
These can be viewed at https://www.clsa.com/disclaimer.htmlor sent to
you upon request.
/*CLSA is ISO14001 certified and committed to reducing environmental
impact.*/
----------------------------------------------------------------------
-------- Check out the vibrant tech community on one of the world's
most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
https://lists.sourceforge.net/lists/listinfo/quantlib-users
The content of this communication is intended for the recipient and is subject to CLSA Legal and Regulatory Notices.
These can be viewed at https://www.clsa.com/disclaimer.html or sent to you upon request.
CLSA is ISO14001 certified and committed to reducing environmental impact.
Loading...