[Serialization] Problem serialization of derived classes
Hi there! I have a problem with the code in the attachment. I followed the documentation and the examples, but I did not get the code to work. Gcc produces a lot of failures that something is already instantiated in header files of the serialization library. Has someone a idea what I am doing wrong? My gcc version is 4.1.1-r3 and I am working on a gentoo x86 box. Andreas Willich
Try using the & operator instead of the << and the >>.
And the save function must be const.
I'm having a lot of problems trying to use the Serialization library to.
Good Luck :p
On 1/11/07, Andreas Willich
Hi there!
I have a problem with the code in the attachment. I followed the documentation and the examples, but I did not get the code to work.
Gcc produces a lot of failures that something is already instantiated in header files of the serialization library.
Has someone a idea what I am doing wrong?
My gcc version is 4.1.1-r3 and I am working on a gentoo x86 box.
Andreas Willich
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Miguel Silvestre
Thanks for the const tipp. I replaced the << and >> operators in the save and load functions, but it still does not work. On Thu, 2007-01-11 at 17:58 +0000, Miguel Silvestre wrote:
Try using the & operator instead of the << and the >>. And the save function must be const.
I'm having a lot of problems trying to use the Serialization library to.
Good Luck :p
On 1/11/07, Andreas Willich
wrote: Hi there!
I have a problem with the code in the attachment. I followed the documentation and the examples, but I did not get the code to work.
Gcc produces a lot of failures that something is already instantiated in header files of the serialization library.
Has someone a idea what I am doing wrong?
My gcc version is 4.1.1-r3 and I am working on a gentoo x86 box.
Andreas Willich
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
You didn't say what version of boost you were using. Using the version in HEAD, I compiled your test program with vcc 7.1 and gcc 3.3 with no errors. Robert Ramey Andreas Willich wrote:
Hi there!
I have a problem with the code in the attachment. I followed the documentation and the examples, but I did not get the code to work.
Gcc produces a lot of failures that something is already instantiated in header files of the serialization library.
Has someone a idea what I am doing wrong?
My gcc version is 4.1.1-r3 and I am working on a gentoo x86 box.
Andreas Willich
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
I am using the Boost 1.33.1-r1 ebuild of gentoo, which downloads the boost_1_33_1.tar.bz2 from the gentoo mirrors, in my case from http://gentoo.inode.at/distfiles/ On Thu, 2007-01-11 at 11:16 -0800, Robert Ramey wrote:
You didn't say what version of boost you were using.
Using the version in HEAD, I compiled your test program with vcc 7.1 and gcc 3.3 with no errors.
Robert Ramey
Andreas Willich wrote:
Hi there!
I have a problem with the code in the attachment. I followed the documentation and the examples, but I did not get the code to work.
Gcc produces a lot of failures that something is already instantiated in header files of the serialization library.
Has someone a idea what I am doing wrong?
My gcc version is 4.1.1-r3 and I am working on a gentoo x86 box.
Andreas Willich
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hello, Did you ever manage to resolve this issue? I'm having a similar problem and would be very grateful if you had any insights. Jeshua Bratman -- View this message in context: http://www.nabble.com/-Serialization--Problem-serialization-of-derived-class... Sent from the Boost - Users mailing list archive at Nabble.com.
participants (4)
-
Andreas Willich
-
Jeshua Bratman
-
Miguel Silvestre
-
Robert Ramey