Hi
all,
After a bunch of
"unsafe" compiler warnings (C4996), I received a bunch of actual errors
from the compiler. It's so many errors that there must be something wrong with
my setup. What's going wrong here - any suggestions?
Thanks for any
hints,
Chris
===== Compiler
output =======
------ Build started: Project: NQuantLibc, Configuration: Release Win32 ------ Compiling... QuantlibWrapper.cpp quantlib_wrap.cpp .\quantlib_wrap.cpp(318) : warning C4005: 'SWIGSTDCALL' : macro redefinition .\quantlib_wrap.cpp(114) : see previous definition of 'SWIGSTDCALL' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(210) : warning C4996: 'std::copy': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(2370) : see declaration of 'std::copy' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(221) : warning C4996: 'std::copy': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(2370) : see declaration of 'std::copy' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(232) : warning C4996: 'std::equal': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(2863) : see declaration of 'std::equal' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(249) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(867) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(256) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(265) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(867) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(271) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(280) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(867) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(286) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(295) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(867) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(301) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(417) : warning C4996: 'std::inner_product': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\numeric(101) : see declaration of 'std::inner_product' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(432) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(446) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(867) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(453) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(460) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(471) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(867) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(478) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(485) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(496) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(867) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(503) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(510) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(521) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(867) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(528) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(535) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(544) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(551) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(558) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/array.hpp(565) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/matrix.hpp(197) : warning C4996: 'std::copy': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(2370) : see declaration of 'std::copy' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/matrix.hpp(231) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(867) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/matrix.hpp(242) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(867) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/matrix.hpp(248) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/matrix.hpp(254) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/matrix.hpp(453) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(867) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/matrix.hpp(467) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(867) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/matrix.hpp(474) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/matrix.hpp(481) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/matrix.hpp(488) : warning C4996: 'std::transform': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\algorithm(709) : see declaration of 'std::transform' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/matrix.hpp(501) : warning C4996: 'std::inner_product': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\numeric(101) : see declaration of 'std::inner_product' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/matrix.hpp(513) : warning C4996: 'std::inner_product': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\numeric(101) : see declaration of 'std::inner_product' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/matrix.hpp(529) : warning C4996: 'std::inner_product': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\numeric(101) : see declaration of 'std::inner_product' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/math/matrix.hpp(536) : warning C4996: 'std::copy': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(2370) : see declaration of 'std::copy' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/instruments/basketoption.hpp(82) : warning C4996: 'std::inner_product': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' C:\Program Files\Microsoft Visual Studio 8\VC\include\numeric(101) : see declaration of 'std::inner_product' .\quantlib_wrap.cpp(866) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data .\quantlib_wrap.cpp(873) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data .\quantlib_wrap.cpp(979) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data .\quantlib_wrap.cpp(986) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data .\quantlib_wrap.cpp(1092) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data .\quantlib_wrap.cpp(1099) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data .\quantlib_wrap.cpp(1244) : error C2039: 'Cubic' : is not a member of 'QuantLib' .\quantlib_wrap.cpp(1244) : error C2873: 'Cubic' : symbol cannot be used in a using-declaration .\quantlib_wrap.cpp(1307) : error C2039: 'CapletVolatilityStructure' : is not a member of 'QuantLib' .\quantlib_wrap.cpp(1307) : error C2873: 'CapletVolatilityStructure' : symbol cannot be used in a using-declaration .\quantlib_wrap.cpp(1328) : error C2065: 'CapletVolatilityStructure' : undeclared identifier .\quantlib_wrap.cpp(1329) : error C2678: binary '!' : no operator found which takes a left-hand operand of type 'boost::shared_ptr' (or there is no acceptable conversion) C:\Program Files\boost\boost_1_34_1\boost/shared_ptr.hpp(370): could be 'bool boost::shared_ptr<T>::operator !(void) const' while trying to match the argument list '(boost::shared_ptr)' .\quantlib_wrap.cpp(1332) : error C2440: '<function-style-cast>' : cannot convert from 'boost::shared_ptr' to 'boost::shared_ptr<T>' with [ T=QuantLib::Observable ] No constructor could take the source type, or constructor overload resolution was ambiguous .\quantlib_wrap.cpp(1335) : error C2440: '<function-style-cast>' : cannot convert from 'QuantLib::Handle' to 'boost::shared_ptr<T>' with [ T=QuantLib::Observable ] No constructor could take the source type, or constructor overload resolution was ambiguous .\quantlib_wrap.cpp(1355) : error C2661: 'QuantLib::BlackConstantVol::BlackConstantVol' : no overloaded function takes 3 arguments .\quantlib_wrap.cpp(1359) : error C2661: 'QuantLib::BlackConstantVol::BlackConstantVol' : no overloaded function takes 3 arguments .\quantlib_wrap.cpp(1378) : error C2664: 'QuantLib::BlackVarianceSurface::BlackVarianceSurface(const QuantLib::Date &,const QuantLib::Calendar &,const std::vector<_Ty> &,const std::vector<QuantLib::Time> &,const QuantLib::Matrix &,const QuantLib::DayCounter &,QuantLib::BlackVarianceSurface::Extrapolation,QuantLib::BlackVarianceSurface::Extrapolation)' : cannot convert parameter 2 from 'const std::vector<_Ty>' to 'const QuantLib::Calendar &' with [ _Ty=QuantLib::Date ] Reason: cannot convert from 'const std::vector<_Ty>' to 'const QuantLib::Calendar' with [ _Ty=QuantLib::Date ] No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called .\quantlib_wrap.cpp(1403) : error C2039: 'CapletConstantVolatility' : is not a member of 'QuantLib' .\quantlib_wrap.cpp(1403) : error C2873: 'CapletConstantVolatility' : symbol cannot be used in a using-declaration .\quantlib_wrap.cpp(1409) : error C2061: syntax error : identifier 'CapletConstantVolatility' .\quantlib_wrap.cpp(1410) : error C2514: 'boost::shared_ptr' : class has no constructors C:\Program Files\boost\boost_1_34_1\boost/shared_ptr.hpp(131) : see declaration of 'boost::shared_ptr' .\quantlib_wrap.cpp(1410) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(1410) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(1414) : error C2061: syntax error : identifier 'CapletConstantVolatility' .\quantlib_wrap.cpp(1415) : error C2514: 'boost::shared_ptr' : class has no constructors C:\Program Files\boost\boost_1_34_1\boost/shared_ptr.hpp(131) : see declaration of 'boost::shared_ptr' .\quantlib_wrap.cpp(1415) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(1415) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(1419) : error C2061: syntax error : identifier 'CapletConstantVolatility' .\quantlib_wrap.cpp(1419) : error C2514: 'boost::shared_ptr' : class has no constructors C:\Program Files\boost\boost_1_34_1\boost/shared_ptr.hpp(131) : see declaration of 'boost::shared_ptr' .\quantlib_wrap.cpp(1419) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(1419) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(1423) : error C2061: syntax error : identifier 'CapletConstantVolatility' .\quantlib_wrap.cpp(1423) : error C2514: 'boost::shared_ptr' : class has no constructors C:\Program Files\boost\boost_1_34_1\boost/shared_ptr.hpp(131) : see declaration of 'boost::shared_ptr' .\quantlib_wrap.cpp(1423) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(1423) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(1611) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data .\quantlib_wrap.cpp(1618) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data .\quantlib_wrap.cpp(2472) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data .\quantlib_wrap.cpp(2479) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data .\quantlib_wrap.cpp(2585) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data .\quantlib_wrap.cpp(2592) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data .\quantlib_wrap.cpp(2698) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data .\quantlib_wrap.cpp(2705) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data .\quantlib_wrap.cpp(2811) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data .\quantlib_wrap.cpp(2818) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data .\quantlib_wrap.cpp(3356) : error C2039: 'EuriborSwapFixAvs3M' : is not a member of 'QuantLib' .\quantlib_wrap.cpp(3356) : error C2873: 'EuriborSwapFixAvs3M' : symbol cannot be used in a using-declaration .\quantlib_wrap.cpp(3360) : error C2061: syntax error : identifier 'EuriborSwapFixAvs3M' .\quantlib_wrap.cpp(3360) : error C2661: 'boost::shared_ptr<T>::shared_ptr' : no overloaded function takes 2 arguments with [ T=QuantLib::Index ] .\quantlib_wrap.cpp(3360) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3360) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3363) : error C2039: 'EuriborSwapFixAvs6M' : is not a member of 'QuantLib' .\quantlib_wrap.cpp(3363) : error C2873: 'EuriborSwapFixAvs6M' : symbol cannot be used in a using-declaration .\quantlib_wrap.cpp(3367) : error C2061: syntax error : identifier 'EuriborSwapFixAvs6M' .\quantlib_wrap.cpp(3367) : error C2661: 'boost::shared_ptr<T>::shared_ptr' : no overloaded function takes 2 arguments with [ T=QuantLib::Index ] .\quantlib_wrap.cpp(3367) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3367) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3475) : error C2039: 'EuriborSwapFixIFRvs3M' : is not a member of 'QuantLib' .\quantlib_wrap.cpp(3475) : error C2873: 'EuriborSwapFixIFRvs3M' : symbol cannot be used in a using-declaration .\quantlib_wrap.cpp(3479) : error C2061: syntax error : identifier 'EuriborSwapFixIFRvs3M' .\quantlib_wrap.cpp(3479) : error C2661: 'boost::shared_ptr<T>::shared_ptr' : no overloaded function takes 2 arguments with [ T=QuantLib::Index ] .\quantlib_wrap.cpp(3479) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3479) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3482) : error C2039: 'EuriborSwapFixIFRvs6M' : is not a member of 'QuantLib' .\quantlib_wrap.cpp(3482) : error C2873: 'EuriborSwapFixIFRvs6M' : symbol cannot be used in a using-declaration .\quantlib_wrap.cpp(3486) : error C2061: syntax error : identifier 'EuriborSwapFixIFRvs6M' .\quantlib_wrap.cpp(3486) : error C2661: 'boost::shared_ptr<T>::shared_ptr' : no overloaded function takes 2 arguments with [ T=QuantLib::Index ] .\quantlib_wrap.cpp(3486) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3486) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3594) : error C2039: 'EurliborSwapFixAvs3M' : is not a member of 'QuantLib' .\quantlib_wrap.cpp(3594) : error C2873: 'EurliborSwapFixAvs3M' : symbol cannot be used in a using-declaration .\quantlib_wrap.cpp(3598) : error C2061: syntax error : identifier 'EurliborSwapFixAvs3M' .\quantlib_wrap.cpp(3598) : error C2661: 'boost::shared_ptr<T>::shared_ptr' : no overloaded function takes 2 arguments with [ T=QuantLib::Index ] .\quantlib_wrap.cpp(3598) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3598) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3601) : error C2039: 'EurliborSwapFixAvs6M' : is not a member of 'QuantLib' .\quantlib_wrap.cpp(3601) : error C2873: 'EurliborSwapFixAvs6M' : symbol cannot be used in a using-declaration .\quantlib_wrap.cpp(3605) : error C2061: syntax error : identifier 'EurliborSwapFixAvs6M' .\quantlib_wrap.cpp(3605) : error C2661: 'boost::shared_ptr<T>::shared_ptr' : no overloaded function takes 2 arguments with [ T=QuantLib::Index ] .\quantlib_wrap.cpp(3605) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3605) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3713) : error C2039: 'EurliborSwapFixBvs3M' : is not a member of 'QuantLib' .\quantlib_wrap.cpp(3713) : error C2873: 'EurliborSwapFixBvs3M' : symbol cannot be used in a using-declaration .\quantlib_wrap.cpp(3717) : error C2061: syntax error : identifier 'EurliborSwapFixBvs3M' .\quantlib_wrap.cpp(3717) : error C2661: 'boost::shared_ptr<T>::shared_ptr' : no overloaded function takes 2 arguments with [ T=QuantLib::Index ] .\quantlib_wrap.cpp(3717) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3717) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3720) : error C2039: 'EurliborSwapFixBvs6M' : is not a member of 'QuantLib' .\quantlib_wrap.cpp(3720) : error C2873: 'EurliborSwapFixBvs6M' : symbol cannot be used in a using-declaration .\quantlib_wrap.cpp(3724) : error C2061: syntax error : identifier 'EurliborSwapFixBvs6M' .\quantlib_wrap.cpp(3724) : error C2661: 'boost::shared_ptr<T>::shared_ptr' : no overloaded function takes 2 arguments with [ T=QuantLib::Index ] .\quantlib_wrap.cpp(3724) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3724) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3832) : error C2039: 'EurliborSwapFixIFRvs3M' : is not a member of 'QuantLib' .\quantlib_wrap.cpp(3832) : error C2873: 'EurliborSwapFixIFRvs3M' : symbol cannot be used in a using-declaration .\quantlib_wrap.cpp(3836) : error C2061: syntax error : identifier 'EurliborSwapFixIFRvs3M' .\quantlib_wrap.cpp(3836) : error C2661: 'boost::shared_ptr<T>::shared_ptr' : no overloaded function takes 2 arguments with [ T=QuantLib::Index ] .\quantlib_wrap.cpp(3836) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3836) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3839) : error C2039: 'EurliborSwapFixIFRvs6M' : is not a member of 'QuantLib' .\quantlib_wrap.cpp(3839) : error C2873: 'EurliborSwapFixIFRvs6M' : symbol cannot be used in a using-declaration .\quantlib_wrap.cpp(3843) : error C2061: syntax error : identifier 'EurliborSwapFixIFRvs6M' .\quantlib_wrap.cpp(3843) : error C2661: 'boost::shared_ptr<T>::shared_ptr' : no overloaded function takes 2 arguments with [ T=QuantLib::Index ] .\quantlib_wrap.cpp(3843) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(3843) : error C2143: syntax error : missing ';' before ')' .\quantlib_wrap.cpp(4119) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data .\quantlib_wrap.cpp(4126) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data .\quantlib_wrap.cpp(4153) : error C2661: 'QuantLib::IborLeg::IborLeg' : no overloaded function takes 11 arguments .\quantlib_wrap.cpp(4172) : error C2661: 'QuantLib::CmsLeg::CmsLeg' : no overloaded function takes 11 arguments .\quantlib_wrap.cpp(4188) : error C2039: 'CmsZeroLeg' : is not a member of 'QuantLib' .\quantlib_wrap.cpp(4222) : error C2039: 'paymentConvention' : is not a member of 'QuantLib::Bond' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/instruments/bond.hpp(58) : see declaration of 'QuantLib::Bond' .\quantlib_wrap.cpp(4225) : error C2039: 'dayCounter' : is not a member of 'QuantLib::Bond' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/instruments/bond.hpp(58) : see declaration of 'QuantLib::Bond' .\quantlib_wrap.cpp(4228) : error C2039: 'frequency' : is not a member of 'QuantLib::Bond' C:\cdjProgramming\quantlib\subversion\trunk\QuantLib\ql/instruments/bond.hpp(58) : see declaration of 'QuantLib::Bond' .\quantlib_wrap.cpp(4235) : error C2661: 'QuantLib::Bond::cleanPrice' : no overloaded function takes 3 arguments .\quantlib_wrap.cpp(4242) : error C2661: 'QuantLib::Bond::dirtyPrice' : no overloaded function takes 3 arguments .\quantlib_wrap.cpp(4246) : error C2664: 'QuantLib::Rate QuantLib::Bond::yield(const QuantLib::DayCounter &,QuantLib::Compounding,QuantLib::Frequency,QuantLib::Real,QuantLib::Size) const' : cannot convert parameter 1 from 'QuantLib::Compounding' to 'const QuantLib::DayCounter &' Reason: cannot convert from 'QuantLib::Compounding' to 'const QuantLib::DayCounter' No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called .\quantlib_wrap.cpp(4251) : error C2664: 'QuantLib::Rate QuantLib::Bond::yield(const QuantLib::DayCounter &,QuantLib::Compounding,QuantLib::Frequency,QuantLib::Real,QuantLib::Size) const' : cannot convert parameter 1 from 'QuantLib::Real' to 'const QuantLib::DayCounter &' Reason: cannot convert from 'QuantLib::Real' to 'const QuantLib::DayCounter' No constructor could take the source type, or constructor overload resolution was ambiguous .\quantlib_wrap.cpp(4262) : error C2661: 'QuantLib::ZeroCouponBond::ZeroCouponBond' : no overloaded function takes 9 arguments .\quantlib_wrap.cpp(4269) : error C2664: 'QuantLib::FixedRateBond::FixedRateBond(QuantLib::Natural,const QuantLib::Calendar &,QuantLib::Real,const QuantLib::Date &,const QuantLib::Date &,const QuantLib::Period &,const std::vector<_Ty> &,const QuantLib::DayCounter &,QuantLib::BusinessDayConvention,QuantLib::BusinessDayConvention,QuantLib::Real,const QuantLib::Date &,const QuantLib::Date &,bool,bool)' : cannot convert parameter 2 from 'QuantLib::Real' to 'const QuantLib::Calendar &' with [ _Ty=QuantLib::Time ] .\quantlib_wrap.cpp(4269) : fatal error C1003: error count exceeds 100; stopping compilation Generating Code... Build log was saved at "file://c:\cdjProgramming\quantlib\subversion\trunk\QuantLib-SWIG\CSharp\cpp\bin\Release\BuildLog.htm" NQuantLibc - 102 error(s), 63 warning(s) ------ Build started: Project: NQuantLib, Configuration: Release Any CPU ------ NQuantLib -> C:\cdjProgramming\quantlib\subversion\trunk\QuantLib-SWIG\CSharp\csharp\bin\Release\NQuantLib.dll ------ Build started: Project: BermudanSwaption, Configuration: Release Any CPU ------ copy "C:\cdjProgramming\quantlib\subversion\trunk\QuantLib-SWIG\CSharp\cpp\bin\Release\NQuantLibc.dll" "C:\cdjProgramming\quantlib\subversion\trunk\QuantLib-SWIG\CSharp\examples\bin\Release\" The system cannot find the file specified. C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(814,9): error MSB3073: The command "copy "C:\cdjProgramming\quantlib\subversion\trunk\QuantLib-SWIG\CSharp\cpp\bin\Release\NQuantLibc.dll" "C:\cdjProgramming\quantlib\subversion\trunk\QuantLib-SWIG\CSharp\examples\bin\Release\"" exited with code 1. Done building project "BermudanSwaption.csproj" -- FAILED. ========== Build: 1 succeeded, 2 failed, 0 up-to-date, 0 skipped ========== ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
On Fri, 2007-11-09 at 19:23 -0800, cdj wrote: > After a bunch of "unsafe" compiler warnings (C4996), I received a > bunch of actual errors from the compiler. It's so many errors that > there must be something wrong with my setup. What's going wrong here - > any suggestions? It looks like the SWIG interfaces were not yet updated after the latest changes in the C++ library. For the library, you're using a checkout of the SVN repository, right? Are you using the same checkout for the SWIG solution? Luigi -- Any software problem can be solved by adding another layer of indirection. -- Steven M. Bellovin ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |