Boost logo

Boost Users :

From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2008-06-05 08:42:22


Pfligersdorffer, Christian wrote:
> Jeff Flinn on Tuesday, June 03, 2008 10:22 PM:
>
> Hi Jeff, I looked into the developer list (which I am not subscribed to)
> and found your posting:
>
>> Using the latest portable_binary_archive from the vault with boost
>> 1.34.1 on Mac XCode 3 I'm getting a linker duplicate symbol error:
...
>
> It might be that the mac compiler is a bit more strict on multiple
> template instatiations or else. I suspect line 203 to cause your error,

 From my (limited) experience instantiations seem to occur earlier as well.

> so you could try to move the (entire) instatiation part into a separate
> file if you include portable_binary_oarchive.hpp multiple times. Also be
> sure that your compiler understands #pragma once or change to the
> traditional #ifndef guard.
>
> // explicitly instantiate for this type of binary stream
> template class basic_binary_oarchive<portable_binary_oarchive> ;

Thanks for the tips. If we run into problems with the trunk version
we'll look at this separation. For now we're up and running.

> We have had no user on the mac side of life so you're lucky to be the
> first ;) If you do not succeed trying the suggestions above or need
> further information feel free to contact me directly or post to the user
> list.

The trunk version now works with Mac XCode 3 intel/ppc(boost_1_34_1) as
I mentioned in my reply to Robert! I'll be moving us to 1.35 soon.

> It is somewhat confusing to have two portable_binary_archives around
> (vault and trunk), so always specify which one you are referring to.

I thought I did:
"Using the latest portable_binary_archive from the ***vault*** with
boost 1.34.1 on Mac XCode 3 I'm getting a linker duplicate symbol error:"

Thanks again for the help, Jeff


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