Building quantlib 1.4 for x64 in Visual Studio 2013 Update 4 produces a few warnings. The project settings say to treat warnings as errors (/Wx), so this prevents the build from completing.
May I suggest either fixing the warnings, or making the compiler settings less strict (/Wx-)? ql\math\modifiedbessel.cpp(61): warning C4244: 'argument' : conversion from 'QuantLib::Size' to 'const QuantLib::Real', possible loss of data 1> ql\math\modifiedbessel.cpp(86) : see reference to function template instantiation 'T QuantLib::`anonymous-namespace'::modifiedBesselFunction_i_impl<QuantLib::Real>(QuantLib::Real,const T &)' being compiled 1> with 1> [ 1> T=QuantLib::Real 1> ] 1>ql\experimental\models\basketgeneratingengine.cpp(51): warning C4244: 'initializing' : conversion from '__int64' to 'int', possible loss of data 1>ql\experimental\models\gaussian1dnonstandardswaptionengine.cpp(151): warning C4244: 'initializing' : conversion from '__int64' to 'int', possible loss of data 1>ql\experimental\models\gsrprocess.cpp(352): warning C4244: 'return' : conversion from '__int64' to 'const int', possible loss of data 1>ql\experimental\models\gsrprocess.cpp(359): warning C4244: 'return' : conversion from '__int64' to 'const int', possible loss of data -Matt ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ QuantLib-dev mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-dev |
Hi Matt,
some of these warnings were already fixed in the meantime. I corrected the remaining points in this PR https://github.com/lballabio/quantlib/pull/187/files Based on the R01040x-branch, fixes can be found in this commit https://github.com/pcaspers/quantlib/commit/c6a81cc55e03bba1ba0df839515638e87bbd4f57 Thanks Peter On 16 January 2015 at 19:28, Matt Feemster <[hidden email]> wrote: > Building quantlib 1.4 for x64 in Visual Studio 2013 Update 4 produces a few warnings. The project settings say to treat warnings as errors (/Wx), so this prevents the build from completing. > > May I suggest either fixing the warnings, or making the compiler settings less strict (/Wx-)? > > ql\math\modifiedbessel.cpp(61): warning C4244: 'argument' : conversion from 'QuantLib::Size' to 'const QuantLib::Real', possible loss of data > 1> ql\math\modifiedbessel.cpp(86) : see reference to function template instantiation 'T QuantLib::`anonymous-namespace'::modifiedBesselFunction_i_impl<QuantLib::Real>(QuantLib::Real,const T &)' being compiled > 1> with > 1> [ > 1> T=QuantLib::Real > 1> ] > > 1>ql\experimental\models\basketgeneratingengine.cpp(51): warning C4244: 'initializing' : conversion from '__int64' to 'int', possible loss of data > 1>ql\experimental\models\gaussian1dnonstandardswaptionengine.cpp(151): warning C4244: 'initializing' : conversion from '__int64' to 'int', possible loss of data > 1>ql\experimental\models\gsrprocess.cpp(352): warning C4244: 'return' : conversion from '__int64' to 'const int', possible loss of data > 1>ql\experimental\models\gsrprocess.cpp(359): warning C4244: 'return' : conversion from '__int64' to 'const int', possible loss of data > > -Matt > > > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > QuantLib-dev mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/quantlib-dev ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ QuantLib-dev mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-dev |
Free forum by Nabble | Edit this page |