Login  Register

Re: building under x64

Posted by Bojan Nikolic on Feb 16, 2009; 8:23am
URL: http://quantlib.414.s1.nabble.com/building-under-x64-tp12665p12667.html


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