Hi, I have checked it using the quantlib 1.3 release candidate including the auto_link.hpp that was provided by Luigi later and got the same error. I could track it to the line 44 of auto_link.hpp which is "#ifdef x64". This does not work, at least on my installation of VisualStudio 2010. Therefore later on VisualStudio tries to link the wrong file. Changing "#ifdef x64" to "#ifdef _M_X64" lets the build and test run through (without errors).
Kind regards, Johannes Message: 3 ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Ok, thanks for the check.
Luigi On Mon, Jul 8, 2013 at 11:48 AM, Johannes Göttker-Schnetmann <[hidden email]> wrote: > Hi, > > I have checked it using the quantlib 1.3 release candidate including the > auto_link.hpp that was provided by Luigi later and got the same error. I > could track it to the line 44 of auto_link.hpp which is "#ifdef x64". This > does not work, at least on my installation of VisualStudio 2010. Therefore > later on VisualStudio tries to link the wrong file. Changing "#ifdef x64" to > "#ifdef _M_X64" lets the build and test run through (without errors). > > Kind regards, > Johannes > >> Message: 3 >> Date: Fri, 5 Jul 2013 12:21:45 +0000 >> From: "Smith, Dale (Norcross)" <[hidden email]> >> Subject: Re: [Quantlib-users] Release candidates for version 1.3 >> To: Luigi Ballabio <[hidden email]> >> Cc: QuantLib users <[hidden email]> >> Message-ID: >> >> <[hidden email]> >> >> Content-Type: text/plain; charset="us-ascii" >> >> Luigi, >> >> I still have link errors. I'm willing to work this out with you. Let me >> know how you want to proceed. This is for debug and release targets. >> >> error LNK1104: cannot open file >> 'C:\Temp.dsmith\QuantLib-1.3\lib\QuantLib-vc100-mt-gd.lib' >> BermudanSwaption >> error LNK1104: cannot open file >> 'C:\Temp.dsmith\QuantLib-1.3\lib\QuantLib-vc100-mt-gd.lib' testsuite >> error LNK1181: cannot open input file >> 'C:\Temp.dsmith\QuantLib-1.3\lib\QuantLib-vc100-mt-gd.lib' >> BermudanSwaption >> error LNK1181: cannot open input file >> 'C:\Temp.dsmith\QuantLib-1.3\lib\QuantLib-vc100-mt-gd.lib' testsuite >> >> The QuantLib project built the following: >> >> QuantLib-vc100-x64-mt.lib >> QuantLib-vc100-x64-mt-gd.lib >> >> so I think there is something in the example & test suite project where >> you need to specify the library. My suggestion is for debug targets, you can >> set >> >> QuantLib-vc100-$(Platform)-mt-gd >> >> in the General property sheet under Configuration Properties, and >> >> QuantLib-vc100-$(Platform)-mt >> >> for the release target. Since we have the platform in the lib name, it >> should work for Win32 as well. Use >> >> QuantLib-vc100-$(Platform)-mt-s >> >> for the static runtime targets. >> >> Dale Smith, Ph.D. >> Senior Financial Quantitative Analyst >> Risk & Compliance >> Fiserv >> Office: 678-375-5315 >> www.fiserv.com >> >> -----Original Message----- >> From: Luigi Ballabio [mailto:[hidden email]] >> Sent: Wednesday, July 03, 2013 5:19 PM >> To: Smith, Dale (Norcross) >> Cc: QuantLib users >> Subject: Re: [Quantlib-users] Release candidates for version 1.3 >> >> Hi Dale, >> may you replace Quantib-1.3/ql/auto_link.hpp with the version I'm >> attaching and try again? >> >> Thanks, >> Luigi >> >> >> On Wed, Jul 3, 2013 at 6:32 PM, Smith, Dale (Norcross) >> <[hidden email]> wrote: >> > I have Visual Studio 2010 SP1, x64 under Windows 7 Professional. I >> > downloaded, opened the solution in VS but changed qldefines.hpp to >> > have >> > >> > >> > >> > #ifndef quantlib_defines_hpp >> > >> > /* install-hook */ >> > >> > #define quantlib_defines_hpp >> > >> > #define BOOST_ALL_NO_LIB >> > >> > >> > >> > then did a build for debug & release x64: >> > >> > >> > >> > QuantLib_vc10.vcxproj -> >> > C:\Temp.dsmith\QuantLib-1.3\.\lib\QuantLib-vc100-x64-mt-gd.lib >> > >> > ------ Rebuild All started: Project: BermudanSwaption, Configuration: >> > Release x64 ------ >> > >> > BermudanSwaption.cpp >> > >> > LINK : fatal error LNK1181: cannot open input file >> > 'C:\Temp.dsmith\QuantLib-1.3\lib\QuantLib-vc100-mt-gd.lib' >> > >> > ------ Rebuild All started: Project: BermudanSwaption, Configuration: >> > Debug >> > x64 ------ >> > >> > BermudanSwaption.cpp >> > >> > LINK : fatal error LNK1104: cannot open file >> > 'C:\Temp.dsmith\QuantLib-1.3\lib\QuantLib-vc100-mt-gd.lib' >> > >> > ... >> > >> > quantlibtestsuite.cpp >> > >> > LINK : fatal error LNK1104: cannot open file >> > 'C:\Temp.dsmith\QuantLib-1.3\lib\QuantLib-vc100-mt-gd.lib' >> > >> > >> > >> > So I think there is some inconsistency in the build targets. I did not >> > check the other examples. >> > >> > >> > >> > Dale Smith, Ph.D. >> > >> > Senior Financial Quantitative Analyst >> > >> > Risk & Compliance >> > >> > Fiserv >> > >> > Office: 678-375-5315 >> > >> > www.fiserv.com >> > >> > >> > >> > -----Original Message----- >> > From: Luigi Ballabio [mailto:[hidden email]] >> > Sent: Wednesday, July 03, 2013 10:14 AM >> > To: QuantLib users >> > Subject: [Quantlib-users] Release candidates for version 1.3 >> > >> > >> > >> > Hi all, >> > >> > if you have some time and a few cycles on your computer, please >> > download the tarballs at >> > <https://sourceforge.net/projects/quantlib/files/QuantLib/prerelease/> >> > , >> > >> > give them a try and tell me if there are any problems. I'm especially >> > interested about (1) compilation with VC++11 and (2) 64-bit >> > compilation with any version of VC++, since I can't try those myself. >> > >> > >> > >> > Thanks, >> > >> > Luigi >> > >> > >> > >> > -- >> > >> > <https://implementingquantlib.blogspot.com> >> > >> > <https://twitter.com/lballabio> >> > >> > >> > >> > ---------------------------------------------------------------------- >> > -------- >> > >> > This SF.net email is sponsored by Windows: >> > >> > >> > >> > Build for Windows Store. >> > >> > >> > >> > http://p.sf.net/sfu/windows-dev2dev >> > >> > _______________________________________________ >> > >> > QuantLib-users mailing list >> > >> > [hidden email] >> > >> > https://lists.sourceforge.net/lists/listinfo/quantlib-users >> >> >> >> -- >> <https://implementingquantlib.blogspot.com> >> <https://twitter.com/lballabio> >> >> >> >> ------------------------------ >> >> Message: 4 >> Date: Fri, 5 Jul 2013 15:49:45 +0200 >> From: Luigi Ballabio <[hidden email]> >> Subject: Re: [Quantlib-users] Release candidates for version 1.3 >> To: "Smith, Dale (Norcross)" <[hidden email]> >> Cc: QuantLib users <[hidden email]> >> Message-ID: >> >> <CAJkxnzcCauue33Ft+ygagbbuixt=[hidden email]> >> Content-Type: text/plain; charset="iso-8859-1" >> >> Hi Dale, >> thanks for the help. >> >> The name of the library to pick up should be built in ql/auto_link and >> passed to the linked through the #pragma directive in it, so there >> should be no need to specify it manually. >> >> Please try replacing the BermudanSwaption project with the one I'm >> attaching. It looks like the previous version was missing the >> preprocessor macro telling auto_link to use the x64 version. Let's see >> if this version works better. >> >> I still don't understand why your linker should always ask for the >> same library, though, regardless of debug or release version. Just to >> be sure, are you positive that at some past time you haven't added a >> hard-coded library name to your IDE? >> >> Thanks, >> Luigi >> >> >> >> On Fri, Jul 5, 2013 at 2:21 PM, Smith, Dale (Norcross) >> <[hidden email]> wrote: >> > Luigi, >> > >> > I still have link errors. I'm willing to work this out with you. Let me >> > know how you want to proceed. This is for debug and release targets. >> > >> > error LNK1104: cannot open file >> > 'C:\Temp.dsmith\QuantLib-1.3\lib\QuantLib-vc100-mt-gd.lib' >> > BermudanSwaption >> > error LNK1104: cannot open file >> > 'C:\Temp.dsmith\QuantLib-1.3\lib\QuantLib-vc100-mt-gd.lib' testsuite >> > error LNK1181: cannot open input file >> > 'C:\Temp.dsmith\QuantLib-1.3\lib\QuantLib-vc100-mt-gd.lib' >> > BermudanSwaption >> > error LNK1181: cannot open input file >> > 'C:\Temp.dsmith\QuantLib-1.3\lib\QuantLib-vc100-mt-gd.lib' testsuite >> > >> > The QuantLib project built the following: >> > >> > QuantLib-vc100-x64-mt.lib >> > QuantLib-vc100-x64-mt-gd.lib >> > >> > so I think there is something in the example & test suite project where >> > you need to specify the library. My suggestion is for debug targets, you can >> > set >> > >> > QuantLib-vc100-$(Platform)-mt-gd >> > >> > in the General property sheet under Configuration Properties, and >> > >> > QuantLib-vc100-$(Platform)-mt >> > >> > for the release target. Since we have the platform in the lib name, it >> > should work for Win32 as well. Use >> > >> > QuantLib-vc100-$(Platform)-mt-s >> > >> > for the static runtime targets. >> > >> > Dale Smith, Ph.D. >> > Senior Financial Quantitative Analyst >> > Risk & Compliance >> > Fiserv >> > Office: 678-375-5315 >> > www.fiserv.com >> > >> > -----Original Message----- >> > From: Luigi Ballabio [mailto:[hidden email]] >> > Sent: Wednesday, July 03, 2013 5:19 PM >> > To: Smith, Dale (Norcross) >> > Cc: QuantLib users >> > Subject: Re: [Quantlib-users] Release candidates for version 1.3 >> > >> > Hi Dale, >> > may you replace Quantib-1.3/ql/auto_link.hpp with the version I'm >> > attaching and try again? >> > >> > Thanks, >> > Luigi >> > >> > >> > On Wed, Jul 3, 2013 at 6:32 PM, Smith, Dale (Norcross) >> > <[hidden email]> wrote: >> >> I have Visual Studio 2010 SP1, x64 under Windows 7 Professional. I >> >> downloaded, opened the solution in VS but changed qldefines.hpp to >> >> have >> >> >> >> >> >> >> >> #ifndef quantlib_defines_hpp >> >> >> >> /* install-hook */ >> >> >> >> #define quantlib_defines_hpp >> >> >> >> #define BOOST_ALL_NO_LIB >> >> >> >> >> >> >> >> then did a build for debug & release x64: >> >> >> >> >> >> >> >> QuantLib_vc10.vcxproj -> >> >> C:\Temp.dsmith\QuantLib-1.3\.\lib\QuantLib-vc100-x64-mt-gd.lib >> >> >> >> ------ Rebuild All started: Project: BermudanSwaption, Configuration: >> >> Release x64 ------ >> >> >> >> BermudanSwaption.cpp >> >> >> >> LINK : fatal error LNK1181: cannot open input file >> >> 'C:\Temp.dsmith\QuantLib-1.3\lib\QuantLib-vc100-mt-gd.lib' >> >> >> >> ------ Rebuild All started: Project: BermudanSwaption, Configuration: >> >> Debug >> >> x64 ------ >> >> >> >> BermudanSwaption.cpp >> >> >> >> LINK : fatal error LNK1104: cannot open file >> >> 'C:\Temp.dsmith\QuantLib-1.3\lib\QuantLib-vc100-mt-gd.lib' >> >> >> >> ... >> >> >> >> quantlibtestsuite.cpp >> >> >> >> LINK : fatal error LNK1104: cannot open file >> >> 'C:\Temp.dsmith\QuantLib-1.3\lib\QuantLib-vc100-mt-gd.lib' >> >> >> >> >> >> >> >> So I think there is some inconsistency in the build targets. I did not >> >> check the other examples. >> >> >> >> >> >> >> >> Dale Smith, Ph.D. >> >> >> >> Senior Financial Quantitative Analyst >> >> >> >> Risk & Compliance >> >> >> >> Fiserv >> >> >> >> Office: 678-375-5315 >> >> >> >> www.fiserv.com >> >> >> >> >> >> >> >> -----Original Message----- >> >> From: Luigi Ballabio [mailto:[hidden email]] >> >> Sent: Wednesday, July 03, 2013 10:14 AM >> >> To: QuantLib users >> >> Subject: [Quantlib-users] Release candidates for version 1.3 >> >> >> >> >> >> >> >> Hi all, >> >> >> >> if you have some time and a few cycles on your computer, please >> >> download the tarballs at >> >> <https://sourceforge.net/projects/quantlib/files/QuantLib/prerelease/> >> >> , >> >> >> >> give them a try and tell me if there are any problems. I'm especially >> >> interested about (1) compilation with VC++11 and (2) 64-bit >> >> compilation with any version of VC++, since I can't try those myself. >> >> >> >> >> >> >> >> Thanks, >> >> >> >> Luigi >> >> >> >> >> >> >> >> -- >> >> >> >> <https://implementingquantlib.blogspot.com> >> >> >> >> <https://twitter.com/lballabio> >> >> >> >> >> >> >> >> ---------------------------------------------------------------------- >> >> -------- >> >> >> >> This SF.net email is sponsored by Windows: >> >> >> >> >> >> >> >> Build for Windows Store. >> >> >> >> >> >> >> >> http://p.sf.net/sfu/windows-dev2dev >> >> >> >> _______________________________________________ >> >> >> >> QuantLib-users mailing list >> >> >> >> [hidden email] >> >> >> >> https://lists.sourceforge.net/lists/listinfo/quantlib-users >> > >> > >> > >> > -- >> > <https://implementingquantlib.blogspot.com> >> > <https://twitter.com/lballabio> >> >> >> >> -- >> <https://implementingquantlib.blogspot.com> >> <https://twitter.com/lballabio> >> -------------- next part -------------- >> A non-text attachment was scrubbed... >> Name: BermudanSwaption_vc11.vcxproj >> Type: application/octet-stream >> Size: 34074 bytes >> Desc: not available >> >> ------------------------------ >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> >> ------------------------------ >> >> _______________________________________________ >> QuantLib-users mailing list >> [hidden email] >> https://lists.sourceforge.net/lists/listinfo/quantlib-users >> >> > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > QuantLib-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/quantlib-users > -- <https://implementingquantlib.blogspot.com> <https://twitter.com/lballabio> ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |