Engine icon indicating copy to clipboard operation
Engine copied to clipboard

Build Error

Open tmory59 opened this issue 3 years ago • 1 comments

Hi, I'm getting the below errors when I build in VS2022.

Severity Code Description Project File Line Suppression State Error C2661 'QuantLib::InterpolatedCPICapFloorTermPriceSurfaceQuantLib::Bilinear::InterpolatedCPICapFloorTermPriceSurface': no overloaded function takes 13 arguments QuantExtTestSuite C:\ore\ORE-1.8.7\QuantExt\test\cpicapfloor.cpp 295 Error C2661 'QuantLib::InterpolatedCPICapFloorTermPriceSurfaceQuantLib::Bilinear::InterpolatedCPICapFloorTermPriceSurface': no overloaded function takes 13 arguments (compiling source file inflationvol.cpp) QuantExtTestSuite C:\boost\boost_1_81_0\boost\smart_ptr\make_shared_object.hpp 256 Error C2661 'QuantLib::InterpolatedCPICapFloorTermPriceSurfaceQuantLib::Bilinear::InterpolatedCPICapFloorTermPriceSurface': no overloaded function takes 13 arguments OREData C:\ore\ORE-1.8.7\OREData\ored\marketdata\inflationcapfloorvolcurve.cpp 402 Error LNK1104 cannot open file 'OREData-x64-mt.lib' OREDataTestSuite C:\ore\ORE-1.8.7\OREData\test\LINK 1 Error C2661 'QuantLib::InterpolatedCPICapFloorTermPriceSurfaceQuantLib::Bilinear::InterpolatedCPICapFloorTermPriceSurface': no overloaded function takes 13 arguments (compiling source file observationmode.cpp) OREAnalyticsTestSuite C:\ore\ORE-1.8.7\OREAnalytics\test\testmarket.hpp 98 Error C2661 'QuantLib::InterpolatedCPICapFloorTermPriceSurfaceQuantLib::Bilinear::InterpolatedCPICapFloorTermPriceSurface': no overloaded function takes 13 arguments (compiling source file testmarket.cpp) OREAnalyticsTestSuite C:\ore\ORE-1.8.7\OREAnalytics\test\testmarket.hpp 98 Error C2661 'QuantLib::InterpolatedCPICapFloorTermPriceSurfaceQuantLib::Bilinear::InterpolatedCPICapFloorTermPriceSurface': no overloaded function takes 13 arguments (compiling source file sensitivityanalysisanalytic.cpp) OREAnalyticsTestSuite C:\ore\ORE-1.8.7\OREAnalytics\test\testmarket.hpp 98 Error C2661 'QuantLib::InterpolatedCPICapFloorTermPriceSurfaceQuantLib::Bilinear::InterpolatedCPICapFloorTermPriceSurface': no overloaded function takes 13 arguments (compiling source file sensitivityperformance.cpp) OREAnalyticsTestSuite C:\ore\ORE-1.8.7\OREAnalytics\test\testmarket.hpp 98 Error C2661 'QuantLib::InterpolatedCPICapFloorTermPriceSurfaceQuantLib::Bilinear::InterpolatedCPICapFloorTermPriceSurface': no overloaded function takes 13 arguments (compiling source file stresstest.cpp) OREAnalyticsTestSuite C:\ore\ORE-1.8.7\OREAnalytics\test\testmarket.hpp 98 Error C2661 'QuantLib::InterpolatedCPICapFloorTermPriceSurfaceQuantLib::Bilinear::InterpolatedCPICapFloorTermPriceSurface': no overloaded function takes 13 arguments (compiling source file swapperformance.cpp) OREAnalyticsTestSuite C:\ore\ORE-1.8.7\OREAnalytics\test\testmarket.hpp 98 Error C2661 'QuantLib::InterpolatedCPICapFloorTermPriceSurfaceQuantLib::Bilinear::InterpolatedCPICapFloorTermPriceSurface': no overloaded function takes 13 arguments (compiling source file scenariosimmarket.cpp) OREAnalyticsTestSuite C:\ore\ORE-1.8.7\OREAnalytics\test\testmarket.hpp 98 Error C2661 'QuantLib::InterpolatedCPICapFloorTermPriceSurfaceQuantLib::Bilinear::InterpolatedCPICapFloorTermPriceSurface': no overloaded function takes 13 arguments (compiling source file sensitivityanalysis.cpp) OREAnalyticsTestSuite C:\ore\ORE-1.8.7\OREAnalytics\test\testmarket.hpp 98 Error C2661 'QuantLib::InterpolatedCPICapFloorTermPriceSurfaceQuantLib::Bilinear::InterpolatedCPICapFloorTermPriceSurface': no overloaded function takes 13 arguments (compiling source file scenariogenerator.cpp) OREAnalyticsTestSuite C:\ore\ORE-1.8.7\OREAnalytics\test\testmarket.hpp 98 Error C2661 'QuantLib::InterpolatedCPICapFloorTermPriceSurfaceQuantLib::Bilinear::InterpolatedCPICapFloorTermPriceSurface': no overloaded function takes 13 arguments (compiling source file simulationmeasures.cpp) OREAnalyticsTestSuite C:\ore\ORE-1.8.7\OREAnalytics\test\testmarket.hpp 98 Error MSB6006 "link.exe" exited with code 1104. ore C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets 1096 Error LNK1104 cannot open file 'OREData-x64-mt.lib' ore C:\ore\ORE-1.8.7\App\LINK 1

tmory59 avatar Dec 21 '22 17:12 tmory59

Hi, this looks like a typical error when the quantlib subproject doesn't fully match the ORE version. Have you tried using the latest 1.8.9.1?

rkapl123 avatar Apr 13 '23 18:04 rkapl123