Posted by
tamasrs (Bugzilla) on
Feb 16, 2009; 8:53am
URL: http://quantlib.414.s1.nabble.com/building-under-x64-tp12665p12677.html
indeed:
http://www.viva64.com/content/articles/64-bit-development/?f=PortSample.html&lang=en&content=64-bit-developmentBest,
Tamas
On 16 Feb 2009, at 08:23, Bojan Nikolic wrote:
>
> Hi Mark & Tamas,
>
> It is unlikely to be a problem with flags (-fPIC is for "position
> independent code" so something that would come up at linking stage).
>
> If you are getting zeros as the NULL template values the most likely
> reason is that the template null hasn't been specialised for a type
> that is being used. See the file:
>
> ql/utilities/null.hpp
>
> // BN: This is the un-specialised version which returns Type()
> // which will be zero
>
> //! template class providing a null value for a given type.
> template <class Type>
> class Null {
> public:
> Null() {}
> operator Type() const { return Type(); }
> };
>
> // Specialised versions follow....
>
> I suspect you need to add a specialisation for the size_t type since
> on 64bit windows size_t is (I think) not the same type as unsigned
> int.
>
> Best,
> Bojan
>
>
>
>
> --
> Bojan Nikolic ||
http://www.bnikolic.co.uk>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San
> Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source
> code: SFAD
>
http://p.sf.net/sfu/XcvMzF8H> _______________________________________________
> QuantLib-dev mailing list
>
[hidden email]
>
https://lists.sourceforge.net/lists/listinfo/quantlib-dev------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev