Hi,
trying to compile ObjectHandler under Ubuntu (I'm a newbie Linux Ubuntu user) following this link steps: http://quantlib.org/objecthandler/installation.html and I got the following error during "make" command serializationfactory.cpp: In member function 'virtual int ObjectHandler::SerializationFactory::saveObject(const std::vector<boost::shared_ptr<ObjectHandler::Object> >&, const string&, bool)': serializationfactory.cpp:198:59: error: expected unqualified-id before '<' token The error seems to be due to boost::filesystem::basic_filesystem_error but I found it is declared in header files and boost installation seems to be ok, so I cannot understand why I get the error. Could anyone in the list give me some help on this? Below I enclose other details. Many thanks for any suggestion Paolo Command raising error /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I/home/ubuntu/Documents/install/include -g -O2 -Wall -MT serializationfactory.lo -MD -MP -MF .deps/serializationfactory.Tpo -c -o serializationfactory.lo serializationfactory.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/home/ubuntu/Documents/install/include -g -O2 -Wall -MT serializationfactory.lo -MD -MP -MF .deps/serializationfactory.Tpo -c serializationfactory.cpp -fPIC -DPIC -o .libs/serializationfactory.o serializationfactory.cpp: In member function 'virtual int ObjectHandler::SerializationFactory::saveObject(const std::vector<boost::shared_ptr<ObjectHandler::Object> >&, const string&, bool)': serializationfactory.cpp:198:59: error: expected unqualified-id before '<' token =============================================================== Relevant part of serializationfactory.cpp #include <boost/filesystem.hpp> //This include path.hpp and seems fine [...] serializationfactory.cpp:198:59: is } catch (const boost::filesystem::basic_filesystem_error<boost::filesystem::path>&) { =============================================================== My system configuration QuantLib, QuantLibAddin and ObjectHandler are all 1.2.0 version I installed boost libraries with apt-get install libboost1.48-dev libboost1.48-doc apt-get install libboost-regex-dev ================================================================= ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: BUILD Helping you discover the best ways to construct your parallel projects. http://goparallel.sourceforge.net _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |