|
Boost Users : |
Subject: Re: [Boost-users] [serialization]conflicting declaration(BOOST_CLASS_EXPORT)
From: Robert Ramey (ramey_at_[hidden])
Date: 2008-09-25 00:43:50
The way I run the serialization tests is to run bjam as described in
tools/regression/build/library_test.sh
This creates a table similar to that shown at www.rrsd.com
I should say however that for some time this only works with my microsoft
compiler.
You should be able to at least build all the demos. I'm not sure if any of
them
use the export functionality.
Note that we've had lots of difficulties with export. This is due to the
fact that it relies on indicating to the compiler that something shouldn't
be stripped. The way of doing this is compiler dependent - see
/boost/serialization/force_include. However, so far, we've been
able to make this work on all compilers that boost uses. See
the test matrix for the 1.36 release. I presume that these tests
are run and built in release mode - but there isn't any way to actually
know that.
Robert Ramey
Jens Weller wrote:
>> what compiler version.
> 3.4.2
>
>> Do the serialization tests which use "EXPORT" also fail in your
>> machine? Try building them this bjam. That is - try running the
>> whole serialization test suite.
>
> How to start them with bjam?
> Also please note, that my exports are in a special file, as Jeff
> suggested.
>
>
>> If the all these serialization tests pass but your example fails,
>> check to see that the compil/link switches are the same in both
>> cases.
> I'll try as soon as I can.
>
>> Is there an environment similar to yours in the test matrix? All
>> tests related to export passing except for one platform.
> Basicly I have 1. Baseclass, 2 derived, 1. exportfile.cpp, 1 main.cpp
> Dunno if you have such complex testcases.
>
> regards,
>
> Jens Weller
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net