Boost logo

Boost Users :

From: Andy (atompkins_at_[hidden])
Date: 2007-04-05 13:13:08


"Christian Henning" <chhenning_at_[hidden]> wrote in
news:949801310704041433q4fcbd67ame61cc03a14742cfa_at_[hidden]:

Hi Christian,

What version are you using? The latest is guid_v7.zip.

> Hi there, there is a problem with the free flowing functions
> random_byte(...) and swap(...).

I am having trouble duplicating this problem. Both functions
are declaired inline which should prevent this issue.

Can you provide a little more information?

Andy.

>
> stdafx.obj : error LNK2005: "unsigned char __cdecl
> boost::detail::random_byte(void)" (?random_byte_at_detail@boost@@YAEXZ)
> already defined in database.obj
> stdafx.obj : error LNK2005: "void __cdecl boost::swap(class
> boost::guid &,class boost::guid &)" (?swap_at_boost@@YAXAAVguid_at_1@0_at_Z)
> already defined in database.obj
>
> To solve that one would need to move the functions inside a structure.
>
> For example:
>
> namespace boost { namespace detail {
>
> struct utilities
> {
> static uint8_t random_byte() { ... }
> };
>
> }}
>
>
> Christian


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