Login  Register

Re: build quantlibXL in Visual Studio

Posted by Wenhai Zhang, CLSA on Jul 27, 2017; 12:01am
URL: http://quantlib.414.s1.nabble.com/build-quantlibXL-in-Visual-Studio-tp18351p18450.html

Thanks, Eric. I have solved it by changing the linker from x86_amd64 to amd64.

Regards,
Wenhai

-----Original Message-----
From: Eric Ehlers [mailto:[hidden email]]
Sent: Thursday, July 27, 2017 4:18 AM
To: Wenhai Zhang, CLSA <[hidden email]>
Cc: [hidden email]
Subject: Re: [Quantlib-users] build quantlibXL in Visual Studio

Hi Wenhai,

It's no bother at all but I am afraid I don't have a suitable answer.  
When we implemented QuantLibXL the current version of Visual Studio back then was VC9 if I remember correctly.  At that time the build times were acceptable.  With each new release of Visual Studio the build times have become longer and longer.  I suspect that the linker dislikes something about the large number of objects derived from the autogenerated source code but I haven't investigated.  The workarounds are not very clever - use bigger hardware, let it run overnight, use a different configuration (some are quicker than others), switch back to an older version of Visual Studio.

When I was implementing the new reposit build I was paying close attention to this problem, the build times were OK and I planned to fix them if they got too slow, but I didn't have time to complete the project.

Kind Regards,
Eric

On 2017-07-26 08:01, Wenhai Zhang, CLSA wrote:

> Hi Eric,
>
> Sorry to bother you again.  Would you please suggest why it takes so long time to build the quantlibxlStatic? I am using Visual 2013. I found it took very long time in the last step to build QuantLibXLStatic.
>
> Regards,
> Wenhai
>
> -----Original Message-----
> From: Wenhai Zhang, CLSA
> Sent: Wednesday, June 21, 2017 7:27 AM
> To: 'Eric Ehlers' <[hidden email]>;
> [hidden email]
> Subject: RE: [Quantlib-users] build quantlibXL in Visual Studio
>
> Hi Eric,
>
> Thanks. I have solved it by turning on the incremental linking.
>
> Regards,
> Wenhai
>
> -----Original Message-----
> From: Eric Ehlers [mailto:[hidden email]]
> Sent: Wednesday, June 21, 2017 2:20 AM
> To: Wenhai Zhang, CLSA <[hidden email]>;
> [hidden email]
> 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
>
> On 2017-06-16 10:26, Wenhai Zhang, CLSA wrote:
>> 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.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
>> [hidden email]
>> 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.
>

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.
------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users