compile errors

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

compile errors

Siddharth Alexander
Hi-
 
I am trying to build QuantLibAllStatic_vc7 in VS .NET 2003. I have a ton of errors while compiling the QuantLibObjects project. Are the files in this project current? Does this have to be included for me to run quantlib in xl and be able to step into the code? I have all kinds of errors. Please let me know if you can help in any way.
 
Thanks,
S
 
Here are a couple of sample errors:
 
c:\build_ql_0_9_0\QuantLibAddin\qlo\capletvolstructure.cpp(43): error C2039: 'ConstantOptionletVol' : is not a member of 'QuantLib'
 
c:\build_ql_0_9_0\QuantLibAddin\qlo\Enumerations\Constructors\enumeratedpairs.cpp(257): error C2514: 'QuantLib::HistoricalForwardRatesAnalysisImpl' : class has no constructors
        c:\build_ql_0_9_0\QuantLib\ql\models\marketmodels\historicalforwardratesanalysis.hpp(236) : see declaration of 'QuantLib::HistoricalForwardRatesAnalysisImpl'
 
c:\build_ql_0_9_0\QuantLibAddin\qlo\swaptionvolstructure.cpp(45): error C2660: 'QuantLibAddin::SwaptionConstantVolatility::SwaptionConstantVolatility' : function does not take 3 arguments
 

error C2039: 'ModelOfYieldCurve' : is not a member of 'QuantLib::GFunctionFactory' 

 c:\build_ql_0_9_0\QuantLib\ql\cashflows\conundrumpricer.hpp(71) : see declaration of 'QuantLib::GFunctionFactory'

c:\build_ql_0_9_0\QuantLibAddin\qlo\conundrumpricer.hpp(33) : error C2226: syntax error : unexpected type 'boost::shared_ptr<T>' with

[

T=ObjectHandler::ValueObject

]

fatal error C1083: Cannot open include file: 'ql/experimental/abcdatmvolcurve.hpp': No such file or directory

fatal error C1083: Cannot open include file: 'ql/math/interpolations/cubicspline.hpp': No such file or directory

fatal error C1083: Cannot open include file: 'ql/instruments/makeswaptions.hpp': No such file or directory


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: compile errors

Siddharth Alexander
Another error I have is
 

error C2872: 'variant' : ambiguous symbol

could be 'boost::detail::variant'

or 'c:\Program Files\boost\boost_1_35_0\boost\variant\variant.hpp(1785) : boost::variant'

Since I have never used boost, before can somebody shed some light on which is the right one to use?
 
Thanks,
S

 
On 8/4/08, Siddharth Alexander <[hidden email]> wrote:
Hi-
 
I am trying to build QuantLibAllStatic_vc7 in VS .NET 2003. I have a ton of errors while compiling the QuantLibObjects project. Are the files in this project current? Does this have to be included for me to run quantlib in xl and be able to step into the code? I have all kinds of errors. Please let me know if you can help in any way.
 
Thanks,
S
 
Here are a couple of sample errors:
 
c:\build_ql_0_9_0\QuantLibAddin\qlo\capletvolstructure.cpp(43): error C2039: 'ConstantOptionletVol' : is not a member of 'QuantLib'
 
c:\build_ql_0_9_0\QuantLibAddin\qlo\Enumerations\Constructors\enumeratedpairs.cpp(257): error C2514: 'QuantLib::HistoricalForwardRatesAnalysisImpl' : class has no constructors
        c:\build_ql_0_9_0\QuantLib\ql\models\marketmodels\historicalforwardratesanalysis.hpp(236) : see declaration of 'QuantLib::HistoricalForwardRatesAnalysisImpl'
 
c:\build_ql_0_9_0\QuantLibAddin\qlo\swaptionvolstructure.cpp(45): error C2660: 'QuantLibAddin::SwaptionConstantVolatility::SwaptionConstantVolatility' : function does not take 3 arguments
 

error C2039: 'ModelOfYieldCurve' : is not a member of 'QuantLib::GFunctionFactory' 

 c:\build_ql_0_9_0\QuantLib\ql\cashflows\conundrumpricer.hpp(71) : see declaration of 'QuantLib::GFunctionFactory'

c:\build_ql_0_9_0\QuantLibAddin\qlo\conundrumpricer.hpp(33) : error C2226: syntax error : unexpected type 'boost::shared_ptr<T>' with

[

T=ObjectHandler::ValueObject

]

fatal error C1083: Cannot open include file: 'ql/experimental/abcdatmvolcurve.hpp': No such file or directory

fatal error C1083: Cannot open include file: 'ql/math/interpolations/cubicspline.hpp': No such file or directory

fatal error C1083: Cannot open include file: 'ql/instruments/makeswaptions.hpp': No such file or directory



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: compile errors

Eric Ehlers-2
Hi S,

> On 8/4/08, Siddharth Alexander <[hidden email]> wrote:
>>
>> Hi-
>>
>> I am trying to build QuantLibAllStatic_vc7 in VS .NET 2003. I
>> have a ton of
>> errors while compiling the QuantLibObjects project. Are the
>> files in this
>> project current? Does this have to be included for me to run
>> quantlib in xl
>> and be able to step into the code? I have all kinds of
>> errors. Please let me
>> know if you can help in any way.

The VC7 build QuantLibAllStatic_vc7.sln works OK on my
computer.  If you want to debug QuantLibXL then yes you need to
compile all the source code, including the QuantLibObjects
project, with the debug configuration.

>> Here are a couple of sample errors:
>>
>> c:\build_ql_0_9_0\QuantLibAddin\qlo\capletvolstructure.cpp(43):
>> error
>> C2039: 'ConstantOptionletVol' : is not a member of 'QuantLib'

Have you unzipped the QuantLib source files into your build
directory as explained in the tutorial
http://quantlib.org/quantlibaddin/build_tutorial.html?

On Mon, August 4, 2008 17:18, Siddharth Alexander wrote:

> Another error I have is
>
> error C2872: 'variant' : ambiguous symbol
>
> could be 'boost::detail::variant'
>
> or 'c:\Program
> Files\boost\boost_1_35_0\boost\variant\variant.hpp(1785) :
> boost::variant'
> Since I have never used boost, before can somebody shed some
> light on which
> is the right one to use?

Have you installed and configured boost as explained in the
tutorial?  What source code file is being compiled when that
error occurs?

Regards,
Eric

-------------------------
Eric Ehlers
nazcatech sprl | Brussels | http://www.nazcatech.be
Distributed computing for pricing analytics - Use Microsoft
Excel as a client to the Grid


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users