Problem in 64-bit compiling

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

Problem in 64-bit compiling

Francesco Perissin
Hi all
 
I am trying to compile a project based on QL on an address-model 64 machine with msvc9.0 compiler, in order to get a 64-bit dll.
 
Using bjam I successfully built boost.
 
I also managed to successfully build quantlib solution. Apart some warnings concerning roundings and precision between Real and doubles, the libraries have been created and the test suite run quite well.
 
Unfortunately, when compiling my project based upon QL, I get the following error on compiling each cpp file:
 

C:\QuantLib-1.0.1\ql/instruments/asianoption.hpp(81) : error C2514: 'QuantLib::Null<Type>' : class has no constructors

1> with

1> [

1> Type=QuantLib::Size

1> ]

 
even if I have never used any asianoption in my lib.
 
Is there anybody who can help on this?
 
Francesco

------------------------------------------------------------------------------


_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem in 64-bit compiling

Francesco Perissin
Solved!
I simply had to change the preprocessor definition from WIN32 to x64
Now the project compiles.
 
Francesco


 
2010/5/11 Francesco Perissin <[hidden email]>
Hi all
 
I am trying to compile a project based on QL on an address-model 64 machine with msvc9.0 compiler, in order to get a 64-bit dll.
 
Using bjam I successfully built boost.
 
I also managed to successfully build quantlib solution. Apart some warnings concerning roundings and precision between Real and doubles, the libraries have been created and the test suite run quite well.
 
Unfortunately, when compiling my project based upon QL, I get the following error on compiling each cpp file:
 

C:\QuantLib-1.0.1\ql/instruments/asianoption.hpp(81) : error C2514: 'QuantLib::Null<Type>' : class has no constructors

1> with

1> [

1> Type=QuantLib::Size

1> ]

 
even if I have never used any asianoption in my lib.
 
Is there anybody who can help on this?
 
Francesco


------------------------------------------------------------------------------


_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem in 64-bit compiling

Kim Kuen Tang
In reply to this post by Francesco Perissin
Francesco Perissin schrieb:

> Hi all
>  
> I am trying to compile a project based on QL on an address-model 64
> machine with msvc9.0 compiler, in order to get a 64-bit dll.
>  
> Using bjam I successfully built boost.
>  
> I also managed to successfully build quantlib solution. Apart some
> warnings concerning roundings and precision between Real and doubles,
> the libraries have been created and the test suite run quite well.
>  
> Unfortunately, when compiling my project based upon QL, I get the
> following error on compiling each cpp file:
>  
It seems that the macro indicating the plattform is wrong ( or the macro
should be written such that it is compiler dependent. ). Go to the file
ql/utilities/null.hpp, change line 37 from
#ifdef x64
to
*#ifdef _M_X64

*If this help can you open a ticket for it?

-Kim
*

*

>
> C:\QuantLib-1.0.1\ql/instruments/asianoption.hpp(81) : error C2514:
> 'QuantLib::Null<Type>' : class has no constructors
>
> 1> with
>
> 1> [
>
> 1> Type=QuantLib::Size
>
> 1> ]
>
>  
> even if I have never used any asianoption in my lib.
>  
> Is there anybody who can help on this?
>  
> Francesco
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
>
>  
> ------------------------------------------------------------------------
>
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>  


------------------------------------------------------------------------------

_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users