Posted by
Luigi Ballabio-2 on
Apr 23, 2004; 3:11am
URL: http://quantlib.414.s1.nabble.com/Compilation-issue-tp2923p2925.html
On 2004.04.23 10:16, Berardi Luca wrote:
> I can't compile the QuantLib library in multithreaded DLL mode when I
> select the "Optimize speed" option using Visual C++ 6.0.
> More precisely I get the following error:
>
> C:\QUANTLIB\ql/Math/cubicspline.hpp(203) : fatal error C1001:
> INTERNAL COMPILER ERROR
>
>
> and the visual studio points at the following line
>
> M = QL_MAX(M,
> 1.5*QL_MIN(QL_FABS(pm),QL_FABS(pd)));
>
> Does anybody know how to get over this error?
Ciao Luca,
it's hard to say, since it's admittedly a compiler bug... The
VC++ docs say:
----------------------
INTERNAL COMPILER ERROR
(compiler file 'file', line number)
This error is most often generated in one of two cases:
(the first case doesn't apply here)
Failure of the code generator to find a way to generate correct
code for a construct. This is most often caused by the
interaction of an expression and an optimization option. The
optimization has generated a tree which the compiler does not
know how to handle. Such a problem can often be fixed by removing
one or more optimization options when compiling the particular
function containing the line indicated in the error message.
---------------------------
then it goes on explaining how you can try to compile. To access the
relevant docs select Help/Index from the VC++ menu, then look up
'C1001'. Let us know whether you found some way to work around the
problem.
Good luck,
Luigi