Re: Error LNK1104 - cannot open file 'QuantLib-vc140-mt-s.lib'
Posted by
William Capra on
May 03, 2017; 5:40pm
URL: http://quantlib.414.s1.nabble.com/Error-LNK1104-cannot-open-file-QuantLib-vc140-mt-s-lib-tp18229p18242.html
Hi all,
I guess I had the same problem, therefore I use this loop. Sorry in advance if I'm wrong.
While opening QuantLib_vc14.sln the first time, VS suggested to upgrade sdk from 8.1 to 10.x and platform to v141. I agreed.
I built QuantLib 1.9.2 in Visual Studio 2017. Boost 1.63.
Library built correctly but test cases failed due to the link error in the subject of this thread.
QuantLib 1.9.2 built successfully in VS 2017 and all test cases passed.
Hope this could help.
Best,
William
Thanks Mario & Luigi
I tried after renaming the file to QuantLib-vc140-mt-s.lib and this time the
linker gave the same error looking for QuantLib--mt-s.lib. So i made a copy
of it to the original QuantLib--mt-s.lib and tried to build with both the
lib files. This time I didn't get that error.
However, i got a whole bunch of linking errors related to Boost library such
as below. All of my boost library files have *-vc141-mt-gd-1_64.lib such as
boost_coroutine-vc141-mt-gd-1_64.lib.
Error LNK2001 unresolved external symbol "public: static void __cdecl
boost::archive::detail::archive_serializer_map<class
boost::archive::xml_iarchive>::erase(class
boost::archive::detail::basic_serializer const *)"
(?erase@?$archive_serializer_map@Vxml_iarchive@archive@boost@@@detail@archive@boost@@SAXPBVbasic_serializer@234@@Z)
QuantLibXLStatic
C:\local\QuantLib\QuantLibXL\qlxl\QuantLibObjects-vc120-mt-s-1_8_0.lib(serialization_oh.obj)
1
I am going to try using an older version of boost libraries and see if it
works. Hope i am on the right track.
Thanks in advance for your help.
--
View this message in context: http://quantlib.10058.n7.nabble.com/Error-LNK1104-cannot-open-file-QuantLib-vc140-mt-s-lib-tp18229p18234.html
Sent from the quantlib-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!
http://sdm.link/slashdot_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users