[CppAD] erf.hpp(268) : error C2603: 'CppAD::erf_template'

Brad Bell bradbell at seanet.com
Wed Nov 19 09:26:00 EST 2008


Below is a quick solution (I am going to work on a long term fix so that 
this works 'out of the box' and without any warnings).

If you delete erf.cpp from the Microsoft project file
    example\example.sln
and edit the file
    example\example.cpp
to comment out the call to that test; i.e., change
       ok &= Run( Erf,               "Erf"              );
to
        ok &= Run( Erf,               "Erf"              );
then the example project should build and run. You will still get a lot 
of warnings.


Brad Bell wrote:
> Thank you for the report. 
...
> Alberto Jorrín Rodríguez wrote:
>   
>> Dear all,
>>
>>    I am working with  CppAD-20081118 in Windows Vista and Microsoft 
>> Visual Studio 9.0 and when I try to do this part of the 
>> installation/test steps:
>>     
...
>>    
>> c:\users\alberto\desktop\cppad\cppad-20081118\cppad\local\erf.hpp(242) 
>> : error C2603: 'CppAD::erf_template' : there are too much static 
>> objects in the block with constructors/destructors in the function
>>
>> How could I fixe this problem?
>>
>>     



More information about the CppAD mailing list