Hi there,
I am trying to build quantlib 0.97.0 with boost 1.40 but I got lots of compiling errors in MS visual studio 2008 standard. I have verified( got the exactly the same results ) the examples on the boost website for both header file library and binary libraries. I am following the guide in "QuantLib Installation in Visual C++", which has a boost example in Appendix. I also verified it for my boost installation. Still, I got lots of compiling errors: following is the first part of it, there are tons of errors, I have to cancel the compilation to stop it and it's impossible to post them all.
Thanks for any help. Neil ******** Compiling Errors ************ 1>------ Build started: Project: QuantLib, Configuration: Debug (static runtime) Win32 ------
1>Compiling... 1>brownianbridge.cpp 1>timegrid.cpp 1>termstructure.cpp 1>stochasticprocess.cpp 1>settings.cpp 1>prices.cpp 1>position.cpp
1>money.cpp 1>c:\QuanLlib\QuantLib-0.9.7\ql/currency.hpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
1>C:\Boost\include\boost-1_40\boost/format/internals.hpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
1>C:\Boost\include\boost-1_40\boost/format/alt_sstream_impl.hpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
1>C:\Boost\include\boost-1_40\boost/format/internals.hpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
1>issuer.cpp 1>interestrate.cpp 1>index.cpp 1>exercise.cpp 1>exchangerate.cpp 1>c:\QuanLlib\QuantLib-0.9.7\ql/currency.hpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
1>errors.cpp 1>discretizedasset.cpp 1>default.cpp 1>currency.cpp 1>c:\QuanLlib\QuantLib-0.9.7\ql/currency.hpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
1>perturbativebarrieroptionengine.cpp 1>C:\Boost\include\boost-1_40\boost/integer_fwd.hpp(70) : error C2039: 'long_long_type' : is not a member of 'boost' 1>C:\Boost\include\boost-1_40\boost/integer_fwd.hpp(70) : error C2065: 'long_long_type' : undeclared identifier
1>C:\Boost\include\boost-1_40\boost/integer_fwd.hpp(70) : error C2913: explicit specialization; 'boost::integer_traits' is not a specialization of a class template 1>C:\Boost\include\boost-1_40\boost/integer_fwd.hpp(73) : error C2913: explicit specialization; 'boost::integer_traits' is not a specialization of a class template
1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(67) : error C2913: explicit specialization; 'boost::integer_traits' is not a specialization of a class template 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(73) : error C2913: explicit specialization; 'boost::integer_traits' is not a specialization of a class template
1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(79) : error C2913: explicit specialization; 'boost::integer_traits' is not a specialization of a class template 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(85) : error C2913: explicit specialization; 'boost::integer_traits' is not a specialization of a class template
1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(119) : error C2913: explicit specialization; 'boost::integer_traits' is not a specialization of a class template 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(126) : error C2913: explicit specialization; 'boost::integer_traits' is not a specialization of a class template
1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(132) : error C2913: explicit specialization; 'boost::integer_traits' is not a specialization of a class template 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(138) : error C2913: explicit specialization; 'boost::integer_traits' is not a specialization of a class template
1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(144) : error C2913: explicit specialization; 'boost::integer_traits' is not a specialization of a class template 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(150) : error C2913: explicit specialization; 'boost::integer_traits' is not a specialization of a class template
1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(156) : error C2913: explicit specialization; 'boost::integer_traits' is not a specialization of a class template 1>C:\Boost\include\boost-1_40\boost/integer.hpp(88) : error C2065: 'const_max' : undeclared identifier
1> C:\Boost\include\boost-1_40\boost/integer.hpp(94) : see reference to class template instantiation 'boost::int_max_value_t<MaxValue>' being compiled 1>C:\Boost\include\boost-1_40\boost/integer.hpp(89) : error C2065: 'const_max' : undeclared identifier
1>C:\Boost\include\boost-1_40\boost/integer.hpp(90) : error C2065: 'const_max' : undeclared identifier 1>C:\Boost\include\boost-1_40\boost/integer.hpp(91) : error C2065: 'const_max' : undeclared identifier
1>C:\Boost\include\boost-1_40\boost/integer.hpp(101) : error C2065: 'const_min' : undeclared identifier 1> C:\Boost\include\boost-1_40\boost/integer.hpp(107) : see reference to class template instantiation 'boost::int_min_value_t<MinValue>' being compiled
1>C:\Boost\include\boost-1_40\boost/integer.hpp(102) : error C2065: 'const_min' : undeclared identifier 1>C:\Boost\include\boost-1_40\boost/integer.hpp(103) : error C2065: 'const_min' : undeclared identifier
1>C:\Boost\include\boost-1_40\boost/integer.hpp(104) : error C2065: 'const_min' : undeclared identifier 1>C:\Boost\include\boost-1_40\boost/integer.hpp(116) : error C2065: 'const_max' : undeclared identifier
1> C:\Boost\include\boost-1_40\boost/integer.hpp(122) : see reference to class template instantiation 'boost::uint_value_t<Value>' being compiled 1>C:\Boost\include\boost-1_40\boost/integer.hpp(117) : error C2065: 'const_max' : undeclared identifier
1>C:\Boost\include\boost-1_40\boost/integer.hpp(118) : error C2065: 'const_max' : undeclared identifier 1>C:\Boost\include\boost-1_40\boost/integer.hpp(119) : error C2065: 'const_max' : undeclared identifier
1>amortizingfloatingratebond.cpp 1>c:\QuanLlib\QuantLib-0.9.7\ql/cashflows/floatingratecoupon.hpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
1>c:\QuanLlib\QuantLib-0.9.7\ql/currency.hpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
1>Build log was saved at "file://c:\QuanLlib\QuantLib-0.9.7\build\vc90\Debug (static runtime)\BuildLog.htm" 1>QuantLib - 27 error(s), 8 warning(s) ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Have you built boost 1.40 with boost jam? Since the 1.40 version is not available on the boost pro
download page yet. Try to go with boostpro's last 1.39 version. And let us know if it worked
2009/9/22 N Z <[hidden email]> Hi there, ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi Dima,
Thanks for replying. I used the command line: bjam --build-type=complete --toolset=msvc install On Tue, Sep 22, 2009 at 4:19 AM, Dima <[hidden email]> wrote: Have you built boost 1.40 with boost jam? Since the 1.40 version is not available on the boost pro ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
In reply to this post by N Z-2
Hi Neil,
QuantLib 0.97 works well with the latest version of boost using msvc 9. The error is about a type called boost::long_long_type which is defined in the file boost\config\suffix.hpp(470): __extension__ typedef long long long_long_type; Can you first checked that this file exists on your machine? And also make sure that you use the correct path in your msvc include path. Best regards, Kim N Z schrieb: > Hi there, > I am trying to build quantlib 0.97.0 with boost 1.40 but I got lots > of compiling errors in MS visual studio 2008 standard. I have > verified( got the exactly the same results ) the examples on the boost > website for both header file library and binary libraries. > I am following the guide in "QuantLib Installation in Visual C++ > <http://quantlib.org/install/vc9.shtml>", which has a boost example in > Appendix. I also verified it for my boost installation. > Still, I got lots of compiling errors: following is the first part > of it, there are tons of errors, I have to cancel the compilation to > stop it and it's impossible to post them all. > > Thanks for any help. > Neil > > ******** Compiling Errors ************ > 1>------ Build started: Project: QuantLib, Configuration: Debug > (static runtime) Win32 ------ > 1>Compiling... > 1>brownianbridge.cpp > 1>timegrid.cpp > 1>termstructure.cpp > 1>stochasticprocess..cpp > 1>settings.cpp > 1>prices.cpp > 1>position.cpp > 1>money.cpp > 1>c:\QuanLlib\QuantLib-0.9.7\ql/currency.hpp : warning C4819: The file > contains a character that cannot be represented in the current code > page (936). Save the file in Unicode format to prevent data loss > 1>C:\Boost\include\boost-1_40\boost/format/internals.hpp : warning > C4819: The file contains a character that cannot be represented in the > current code page (936). Save the file in Unicode format to prevent > data loss > 1>C:\Boost\include\boost-1_40\boost/format/alt_sstream_impl.hpp : > warning C4819: The file contains a character that cannot be > represented in the current code page (936). Save the file in Unicode > format to prevent data loss > 1>C:\Boost\include\boost-1_40\boost/format/internals.hpp : warning > C4819: The file contains a character that cannot be represented in the > current code page (936). Save the file in Unicode format to prevent > data loss > 1>issuer.cpp > 1>interestrate.cpp > 1>index.cpp > 1>exercise.cpp > 1>exchangerate.cpp > 1>c:\QuanLlib\QuantLib-0.9.7\ql/currency.hpp : warning C4819: The file > contains a character that cannot be represented in the current code > page (936).. Save the file in Unicode format to prevent data loss > 1>errors.cpp > 1>discretizedasset.cpp > 1>default.cpp > 1>currency.cpp > 1>c:\QuanLlib\QuantLib-0.9.7\ql/currency.hpp : warning C4819: The file > contains a character that cannot be represented in the current code > page (936). Save the file in Unicode format to prevent data loss > 1>perturbativebarrieroptionengine.cpp > 1>C:\Boost\include\boost-1_40\boost/integer_fwd.hpp(70) : *error > *C2039: 'long_long_type' : is not a member of 'boost' > 1>C:\Boost\include\boost-1_40\boost/integer_fwd.hpp(70) : *error > *C2065: 'long_long_type' : undeclared identifier > 1>C:\Boost\include\boost-1_40\boost/integer_fwd.hpp(70) : *error > *C2913: explicit specialization; 'boost::integer_traits' is not a > specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_fwd.hpp(73) : error C2913: > explicit specialization; 'boost::integer_traits' is not a > specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(67) : error > C2913: explicit specialization; 'boost::integer_traits' is not a > specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(73) : error > C2913: explicit specialization; 'boost::integer_traits' is not a > specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(79) : error > C2913: explicit specialization; 'boost::integer_traits' is not a > specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(85) : error > C2913: explicit specialization; 'boost::integer_traits' is not a > specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(119) : error > C2913: explicit specialization; 'boost::integer_traits' is not a > specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(126) : error > C2913: explicit specialization; 'boost::integer_traits' is not a > specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(132) : error > C2913: explicit specialization; 'boost::integer_traits' is not a > specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(138) : error > C2913: explicit specialization; 'boost::integer_traits' is not a > specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(144) : error > C2913: explicit specialization; 'boost::integer_traits' is not a > specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(150) : error > C2913: explicit specialization; 'boost::integer_traits' is not a > specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(156) : error > C2913: explicit specialization; 'boost::integer_traits' is not a > specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(88) : error C2065: > 'const_max' : undeclared identifier > 1> C:\Boost\include\boost-1_40\boost/integer.hpp(94) : see > reference to class template instantiation > 'boost::int_max_value_t<MaxValue>' being compiled > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(89) : error C2065: > 'const_max' : undeclared identifier > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(90) : error C2065: > 'const_max' : undeclared identifier > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(91) : error C2065: > 'const_max' : undeclared identifier > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(101) : error C2065: > 'const_min' : undeclared identifier > 1> C:\Boost\include\boost-1_40\boost/integer.hpp(107) : see > reference to class template instantiation > 'boost::int_min_value_t<MinValue>' being compiled > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(102) : error C2065: > 'const_min' : undeclared identifier > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(103) : error C2065: > 'const_min' : undeclared identifier > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(104) : error C2065: > 'const_min' : undeclared identifier > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(116) : error C2065: > 'const_max' : undeclared identifier > 1> C:\Boost\include\boost-1_40\boost/integer.hpp(122) : see > reference to class template instantiation 'boost::uint_value_t<Value>' > being compiled > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(117) : error C2065: > 'const_max' : undeclared identifier > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(118) : error C2065: > 'const_max' : undeclared identifier > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(119) : error C2065: > 'const_max' : undeclared identifier > 1>amortizingfloatingratebond.cpp > 1>c:\QuanLlib\QuantLib-0.9.7\ql/cashflows/floatingratecoupon.hpp : > warning C4819: The file contains a character that cannot be > represented in the current code page (936). Save the file in Unicode > format to prevent data loss > 1>c:\QuanLlib\QuantLib-0.9.7\ql/currency.hpp : warning C4819: The file > contains a character that cannot be represented in the current code > page (936). Save the file in Unicode format to prevent data loss > 1>Build log was saved at > "file://c:\QuanLlib\QuantLib-0.9.7\build\vc90\Debug (static > runtime)\BuildLog.htm" > 1>QuantLib - 27 error(s), 8 warning(s) > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > ------------------------------------------------------------------------ > > _______________________________________________ > QuantLib-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/quantlib-users > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi Kim,
The suffix.hpp is on my machine, under directory: C:\Boost\include\boost-1_40\boost\config. My VS setting is: Tools -> Options -> Projects and Solutions -> VC++ Directories , in the 'Include files', I added 'C:\Boost\include\boost-1_40' in the path. In the 'Library Files', I added 'C:\Boost\lib'.
Thanks, Neil
On Tue, Sep 22, 2009 at 2:57 PM, Kim Kuen Tang <[hidden email]> wrote: Hi Neil, ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi Neil,
the errors dont indicate that it is related with the quantlib library. As you can see the errors came during the compilation of the file perturbativebarrieroptionengine.cpp which is located in the folder ql\experimental\barrieroption\. You can exclude these two files from the quantlib project to see wheter it compiles or not. HTH Best regards, Kim N Z schrieb: > Hi Kim, > The suffix.hpp is on my machine, under > directory: C:\Boost\include\boost-1_40\boost\config. > My VS setting is: > Tools -> Options -> Projects and Solutions -> VC++ Directories , in > the 'Include files', I added 'C:\Boost\include\boost-1_40' in the > path. In the 'Library Files', I added 'C:\Boost\lib'. > > Thanks, > Neil > > On Tue, Sep 22, 2009 at 2:57 PM, Kim Kuen Tang <[hidden email] > <mailto:[hidden email]>> wrote: > > Hi Neil, > > QuantLib 0.97 works well with the latest version of boost using > msvc 9. > > The error is about a type called boost::long_long_type which is > defined in the file boost\config\suffix.hpp(470): __extension__ > typedef long long long_long_type; Can you first checked that this > file exists on your machine? > > And also make sure that you use the correct path in your msvc > include path. > > Best regards, > Kim > > N Z schrieb: > > Hi there, > I am trying to build quantlib 0.97.0 with boost 1.40 but I > got lots of compiling errors in MS visual studio 2008 > standard. I have verified( got the exactly the same results ) > the examples on the boost website for both header file library > and binary libraries. I am following the guide in "QuantLib > Installation in Visual C++ > <http://quantlib.org/install/vc9.shtml>", which has a boost > example in Appendix. I also verified it for my boost > installation. Still, I got lots of compiling errors: > following is the first part of it, there are tons of errors, I > have to cancel the compilation to stop it and it's impossible > to post them all. > > > Thanks for any help. > Neil > > ******** Compiling Errors ************ > 1>------ Build started: Project: QuantLib, Configuration: > Debug (static runtime) Win32 ------ > 1>Compiling... > 1>brownianbridge.cpp > 1>timegrid.cpp > 1>termstructure.cpp > 1>stochasticprocess..cpp > 1>settings.cpp > 1>prices.cpp > 1>position.cpp > 1>money.cpp > 1>c:\QuanLlib\QuantLib-0.9.7\ql/currency.hpp : warning C4819: > The file contains a character that cannot be represented in > the current code page (936). Save the file in Unicode format > to prevent data loss > 1>C:\Boost\include\boost-1_40\boost/format/internals.hpp : > warning C4819: The file contains a character that cannot be > represented in the current code page (936). Save the file in > Unicode format to prevent data loss > 1>C:\Boost\include\boost-1_40\boost/format/alt_sstream_impl.hpp > : warning C4819: The file contains a character that cannot be > represented in the current code page (936). Save the file in > Unicode format to prevent data loss > 1>C:\Boost\include\boost-1_40\boost/format/internals.hpp : > warning C4819: The file contains a character that cannot be > represented in the current code page (936). Save the file in > Unicode format to prevent data loss > 1>issuer.cpp > 1>interestrate.cpp > 1>index.cpp > 1>exercise.cpp > 1>exchangerate.cpp > 1>c:\QuanLlib\QuantLib-0.9.7\ql/currency.hpp : warning C4819: > The file contains a character that cannot be represented in > the current code page (936).. Save the file in Unicode format > to prevent data loss > 1>errors.cpp > 1>discretizedasset.cpp > 1>default.cpp > 1>currency.cpp > 1>c:\QuanLlib\QuantLib-0.9.7\ql/currency.hpp : warning C4819: > The file contains a character that cannot be represented in > the current code page (936). Save the file in Unicode format > to prevent data loss > 1>perturbativebarrieroptionengine.cpp > 1>C:\Boost\include\boost-1_40\boost/integer_fwd.hpp(70) : > *error *C2039: 'long_long_type' : is not a member of 'boost' > 1>C:\Boost\include\boost-1_40\boost/integer_fwd.hpp(70) : > *error *C2065: 'long_long_type' : undeclared identifier > 1>C:\Boost\include\boost-1_40\boost/integer_fwd.hpp(70) : > *error *C2913: explicit specialization; > 'boost::integer_traits' is not a specialization of a class > template > 1>C:\Boost\include\boost-1_40\boost/integer_fwd.hpp(73) : > error C2913: explicit specialization; 'boost::integer_traits' > is not a specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(67) : > error C2913: explicit specialization; 'boost::integer_traits' > is not a specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(73) : > error C2913: explicit specialization; 'boost::integer_traits' > is not a specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(79) : > error C2913: explicit specialization; 'boost::integer_traits' > is not a specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(85) : > error C2913: explicit specialization; 'boost::integer_traits' > is not a specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(119) : > error C2913: explicit specialization; 'boost::integer_traits' > is not a specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(126) : > error C2913: explicit specialization; 'boost::integer_traits' > is not a specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(132) : > error C2913: explicit specialization; 'boost::integer_traits' > is not a specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(138) : > error C2913: explicit specialization; 'boost::integer_traits' > is not a specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(144) : > error C2913: explicit specialization; 'boost::integer_traits' > is not a specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(150) : > error C2913: explicit specialization; 'boost::integer_traits' > is not a specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer_traits.hpp(156) : > error C2913: explicit specialization; 'boost::integer_traits' > is not a specialization of a class template > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(88) : error > C2065: 'const_max' : undeclared identifier > 1> C:\Boost\include\boost-1_40\boost/integer.hpp(94) : > see reference to class template instantiation > 'boost::int_max_value_t<MaxValue>' being compiled > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(89) : error > C2065: 'const_max' : undeclared identifier > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(90) : error > C2065: 'const_max' : undeclared identifier > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(91) : error > C2065: 'const_max' : undeclared identifier > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(101) : error > C2065: 'const_min' : undeclared identifier > 1> C:\Boost\include\boost-1_40\boost/integer.hpp(107) : > see reference to class template instantiation > 'boost::int_min_value_t<MinValue>' being compiled > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(102) : error > C2065: 'const_min' : undeclared identifier > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(103) : error > C2065: 'const_min' : undeclared identifier > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(104) : error > C2065: 'const_min' : undeclared identifier > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(116) : error > C2065: 'const_max' : undeclared identifier > 1> C:\Boost\include\boost-1_40\boost/integer.hpp(122) : > see reference to class template instantiation > 'boost::uint_value_t<Value>' being compiled > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(117) : error > C2065: 'const_max' : undeclared identifier > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(118) : error > C2065: 'const_max' : undeclared identifier > 1>C:\Boost\include\boost-1_40\boost/integer.hpp(119) : error > C2065: 'const_max' : undeclared identifier > 1>amortizingfloatingratebond.cpp > 1>c:\QuanLlib\QuantLib-0.9.7\ql/cashflows/floatingratecoupon.hpp > : warning C4819: The file contains a character that cannot be > represented in the current code page (936). Save the file in > Unicode format to prevent data loss > 1>c:\QuanLlib\QuantLib-0.9.7\ql/currency.hpp : warning C4819: > The file contains a character that cannot be represented in > the current code page (936). Save the file in Unicode format > to prevent data loss > 1>Build log was saved at > "file://c:\QuanLlib\QuantLib-0.9.7\build\vc90\Debug (static > runtime)\BuildLog.htm" > 1>QuantLib - 27 error(s), 8 warning(s) > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference > in SF, CA > is the only developer event you need to attend this year. > Jumpstart your > developing skills, take BlackBerry mobile applications to > market and stay ahead of the curve. Join us from November > 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > ------------------------------------------------------------------------ > > _______________________________________________ > QuantLib-users mailing list > [hidden email] > <mailto:[hidden email]> > https://lists.sourceforge.net/lists/listinfo/quantlib-users > > > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi Kim,
I am not sure how to exclude the files from the quantlib project. If I removed the files from my local, and compiling quantlib will complain about not finding them. However, I tried to comment out the template specialization in integer_fwd.hpp for the long_long_type, and recompile quantlib, it works. Of course I then lose the template specialization, but this may give some hints on how to get rid of the error message finally.
Thanks, Neil
On Wed, Sep 23, 2009 at 3:02 PM, Kim Kuen Tang <[hidden email]> wrote: Hi Neil, ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
On Thu, 2009-09-24 at 00:56 -0400, N Z wrote:
> However, I tried to comment out the template specialization in > integer_fwd.hpp for the long_long_type, and recompile quantlib, it > works. Of course I then lose the template specialization, but this may > give some hints on how to get rid of the error message finally. Apparently Boost gets in some inconsistent state. To give it a hint, try adding BOOST_HAS_LONG_LONG to the preprocessor defines in the project settings (from the VC++ IDE right-click on the project, Properties, Configuration Properties, C/C++, Preprocessor, Preprocessor Definitions.) Luigi -- feature, n: A surprising property of a program. Occasionally documented. To call a property a feature sometimes means the author did not consider that case, and the program makes an unexpected, though not necessarily wrong response. See BUG. "That's not a bug, it's a feature!" A bug can be changed to a feature by documenting it. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi Luigi,
Your solution works! I've compiled QuantLib project successfully. Although it's a little bit tedious to change it for each project. Is there any place I can change it for all projects at one time? Also, there are still many warnings, Is there any way to get rid of them?
Thanks, Neil
On Thu, Sep 24, 2009 at 9:51 AM, Luigi Ballabio <[hidden email]> wrote:
------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
On Fri, 2009-09-25 at 01:15 -0400, N Z wrote:
> Hi Luigi, > Your solution works! I've compiled QuantLib project successfully. > Although it's a little bit tedious to change it for each project. Is > there any place I can change it for all projects at one time? You can try putting #define BOOST_HAS_LONG_LONG in <ql/qldefines.hpp> (which is included directly or indirectly by every QuantLib file.) Of course, it will work as long as you include QuantLib headers before the Boost ones (which we enforce in QuantLib, but you'll have to take care of your own files.) > Also, there are still many warnings, Is there any way to get rid of > them? Adding #pragma warning(disable:4819) to qldefines.hpp will disable warning 4819. Luigi -- Vin: It's like this fellow I knew in El Paso. One day, he just took all his clothes off and jumped in a mess of cactus. I asked him that same question, "Why?" Calvera: And? Vin: He said, "It seemed like a good idea at the time." -- The Magnificent Seven ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
I think your solution works here, is there a better way to do this? Normally, we don't have the luxury to modify libraries.
Also, generally, I know we can disable certain compiler error for a project, in its properties setting. Is there any way to do it on the whole solution( as we have on quantlib ) instead of on each project separately? Just can't find in VC menu for a way to do it.
Thanks, Neil
On Fri, Sep 25, 2009 at 8:37 AM, Luigi Ballabio <[hidden email]> wrote:
------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
In reply to this post by Luigi Ballabio
Hello Luigi,
It's been a while since I last posted a message here. I would firstly just like to say thanks to you guys as well as the guys at www.qlnet.org . Via both your professional frameworks, most of my time was spent on Silverlight integration issues rather than implementing a financial derivatives framework from scratch. Because I have moved onto C# the last couple of years, Most of my work has been porting QuantLib C++ to C#. Basically I have been looking at the Silverlight technology as a way for users to price derivatives with just a browser installed and to eliminate server costs at the same time. You probably recall that I attempted this a few years ago via an ASP.NET version but this died very quickly because too many users hit the server and of course, it being hosted on one of those cheap ASP.NET hosting plans, did not really cater for a lot of people hitting it. The service was to be free, but with the infrastructure needed to be hosted on several heavy duty server machine, the costs became a factor for me. Now I have a Silverlight version. All number crunching is performed on the users machine, for now the silverlight application is hosted on Microsoft's server. Please feel free to play with it and let me know of any comments and improvements that you think are needed. It's a free service and currently you can strip yieldcurves, construct simple SABR volatility curves and price over 45 interest rate strategies including CMS Swaps, LIBOR and In-Arrears. You can also cap all these legs. Cashflows can be viewed and simple delta curve risk can be conducted against the chosen strategy.. You can also save copies of the pricers to your hard disk for printing or for reloading the data back into the pricer. The format are Excel 2003 XML spreadsheet files. Of course the whole thing is powered by QuantLib (C# version) and any mispricing, bugs is down to me and not QuantLib, QLNet. You do need the latest Silverlight runtime in order to play with it. You can access the pricer at www.QuantTools.com/irpricer.htm It's in beta at the moment and I need to provide user docs which will be coming soon. I am looking to integrate more pricers/screens and so if anyone has any suggestions let me know. Best Regards, Toyin Akin. View your Twitter and Flickr updates from one place - Learn more! ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
In reply to this post by N Z-2
On Sun, 2009-09-27 at 21:31 -0400, N Z wrote:
> I think your solution works here, is there a better way to do this? > Normally, we don't have the luxury to modify libraries. > Also, generally, I know we can disable certain compiler error for a > project, in its properties setting. Is there any way to do it on the > whole solution( as we have on quantlib ) instead of on each project > separately? Just can't find in VC menu for a way to do it. There was a CL environment variable you could set to pass options to the compiler, so that for example set CL=/DBOOST_HAS_LONG_LONG would cause the macro to be defined. I don't know if it still works with VC2008 though. Luigi -- The young man knows the rules, but the old man knows the exceptions. -- O. W. Holmes ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
-----Original Message----- From: Luigi Ballabio [mailto:[hidden email]] Sent: Monday, September 28, 2009 9:47 AM To: N Z Cc: [hidden email] Subject: Re: [Quantlib-users] can't build quantlib with Boost 1.40 On Sun, 2009-09-27 at 21:31 -0400, N Z wrote: > I think your solution works here, is there a better way to do this? > Normally, we don't have the luxury to modify libraries. > Also, generally, I know we can disable certain compiler error for a > project, in its properties setting. Is there any way to do it on the > whole solution( as we have on quantlib ) instead of on each project > separately? Just can't find in VC menu for a way to do it. There was a CL environment variable you could set to pass options to the compiler, so that for example set CL=/DBOOST_HAS_LONG_LONG would cause the macro to be defined. I don't know if it still works with VC2008 though. Luigi For what its worth if you set project->properties->C++->Language->disable language extensions->no then everything builds fine and all the tests pass. This works in MSVC9. michael This e-mail and/or attachment is for the sole use of the intended recipient(s) and may contain confidential and /or legally privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all electronic and paper copies of the original message and any attachments. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
On Thu, 2009-10-01 at 17:02 -0500, Michael Mathews wrote:
> For what its worth if you set > project->properties->C++->Language->disable language extensions->no > then everything builds fine and all the tests pass. > This works in MSVC9. Does it? We might set it as the default, then. Pity we lose the strictness check, though. Maybe we can set it on a per-file basis... Thanks for the hint, Luigi -- I am extraordinarily patient, provided I get my own way in the end. -- Margaret Thatcher ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
-----Original Message----- From: Luigi Ballabio [mailto:[hidden email]] Sent: Friday, October 02, 2009 10:00 AM To: Michael Mathews Cc: N Z; [hidden email] Subject: RE: [Quantlib-users] can't build quantlib with Boost 1.40 On Thu, 2009-10-01 at 17:02 -0500, Michael Mathews wrote: > For what its worth if you set > project->properties->C++->Language->disable language extensions->no > then everything builds fine and all the tests pass. > This works in MSVC9. Does it? We might set it as the default, then. Pity we lose the strictness check, though. Maybe we can set it on a per-file basis... Thanks for the hint, Luigi Yes it works here at least. The question I still have is why? I only tried this since it was the only setting that was different between the quantlib project and others I have that use boost. Do you know of a page that details exactly what this option disables? May be worth posting a small example on the boost list to see what they think. enjoy michael This e-mail and/or attachment is for the sole use of the intended recipient(s) and may contain confidential and /or legally privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all electronic and paper copies of the original message and any attachments. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |