[Serialization] Problem with compiling (something about assertion)
Hi, I'm new to this list.
I tried to search something related to my problem but I found nothing
(or at least, nothing I guess it's related to my problem) and, sincerly,
I don't really know what to search for.
I excuse if I made an already solved request.
Anyway I have this problem:
I'm trying to compile the demo_xml.cpp from the Serialization tutorial.
I compiled the libraries with bjam, I use gcc 3.4.5 on MinGW 5.1.6
(windows 7).
I use Eclipse 3.5 as IDE.
I compiled and runned perfectly the text_archive version of the tutorial
but if I include xml_iarchive.hpp or xml_oarchive.hpp I get the
following error:
===========================================Start=========================================
**** Build of configuration Debug for project TestVariBoost ****
**** Internal Builder is used for build ****
g++ -IC:\Users\blueangel\workspace\TestVariBoost\include -IC:\Program
Files\boost/include -O0 -g3 -Wall -c -fmessage-length=0 -osrc\demo_xml.o
..\src\demo_xml.cpp
C:/Program Files/boost/include/boost/archive/basic_xml_oarchive.hpp: In
member function `void
boost::archive::basic_xml_oarchive<Archive>::save_override(T&, int)
[with T = const std::list
::************)' C:/Program Files/boost/include/boost/archive/basic_xml_oarchive.hpp:92: error: enumerator value for `mpl_assertion_in_line_92' not integer constant Build error occurred, build is stopped Time consumed: 1263 ms. ============================================End=========================================
Really I don't understand which assertion I fail at compile time. At line 92 of basic_xml_oarchive.hpp a comment say that most probably the variable to be serialized the to be around a nvp wrapper but the demo do that (this way: "oa << BOOST_SERIALIZATION_NVP(s);"). What else can it be? Thank you for your time.
Anyway I have this problem: I'm trying to compile the demo_xml.cpp from the Serialization tutorial. I compiled the libraries with bjam, I use gcc 3.4.5 on MinGW 5.1.6 (windows 7).
Note that gcc3.4.5 on MinGW doesn't appear in the list of tested compilers: http://www.boost.org/users/news/version_1_43_0 So maybe it's just not supported.
participants (2)
-
Igor R
-
Mailing Lists Controller