From: stephan b. <st...@s1...> - 2004-12-30 13:50:11
|
On Thursday 30 December 2004 14:04, stephan beal wrote: > On Thursday 30 December 2004 13:59, gj...@fh... wrote: > > see for yourself: > > ../include/pclasses/s11n/reg_serializable_traits.h:123: error: > > redefinition of `struct P::s11n::s11n_traits<size_t>' > > ../include/pclasses/s11n/reg_serializable_traits.h:123: error: > > Okay, i know what causes that, but i don't know why it would show up > on your box but not mine. i'll take a look. i can't reproduce it, but i think i know why: i'll bet that on your 64-bit platform that two of the following types are actually the same type: int, long, ulong, size_t i should have realized that earlier. Here's a potential fix: edit src/s11n/pods_streamable.h Comment out this block: #define PS11N_TYPE ulong #define PS11N_TYPE_NAME "ulong" #define PS11N_SERIALIZE_FUNCTOR PS11N_PODS_STREAMABLE_PROXY #include "reg_serializable_traits.h" If you get the same error, try commenting out the 'long' block and, if that doesn't work, the int block. One of these is almost certainly the problem. Let me know which works on your box. i'll write up a config test to figure out which PODs are actually the same, and change the POD registration accordingly. -- ----- st...@s1... http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts |