|
Boost Users : |
From: Manuel Jung (gzahl_at_[hidden])
Date: 2007-07-05 03:30:15
Hi,
Yes this did the trick, thanks. The EXPORT Scripts were in a header file and
thus included more than one time from different cpp files.
Thanks!
Greetings
Manuel Jung
> This most likely occurs if you have something like the following in more
> than
> one module:
>
> #include "water.hpp" // which icludes BOOST...EXPORT
> #include "../?iarchive.hpp"
> #include "../?oarchive.hpp"
>
> to fix this - make sure you include .../archive.hpp in only one module.
>
> Robert Ramey
>
> Manuel Jung wrote:
>> Hi,
>>
>> Im trying to use the BOOST_CLASS_EXPORT_GUID, but if i use it, i cant
>> link my project.
>> if got these error messages:
>>
>> /gcc-4.1.2/debug/threading-multi/crabd.o:/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/exception:57:
>> multiple definition of
>> `boost::archive::detail::guid_initializer<water::status>::instance'
>>
bin/gcc-4.1.2/debug/threading-multi/seal.o:/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/exception:57:
>> first defined here
>>
bin/gcc-4.1.2/debug/threading-multi/water.o:/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/exception:57:
>> multiple definition of
>> `boost::archive::detail::guid_initializer<water::status>::instance'
>>
bin/gcc-4.1.2/debug/threading-multi/seal.o:/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/exception:57:
>> first defined here
>>
>> The file with the macros is just one time defined. Is there an other
>> possible reason than multiple definition or a more hidden way to
>> define it more than one time?
>> Kind Regards
>> Manuel Jung
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