[MERGE] Re: bzr version-info for C/C++

Lukáš Lalinský lalinsky at gmail.com
Tue Oct 9 20:31:24 BST 2007


On 10/9/07, Matthew D. Fuller <fullermd at over-yonder.net> wrote:
> On Tue, Oct 09, 2007 at 08:44:11PM +0200 I heard the voice of
> Lukáš Lalinský, and lo! it spake thus:
> >
> > If you compile two files with included different version-info header
> > files with const char *revision_id you will get a symbol conflict,
> > because such variables will be always included in the object file
> > and will have the same name.
>
> That's what 'static' is for   8-}

Yep, but what if the developer _want_ to have the variables external?
That's why I prefer cpp macros for this, so the usage depends on the
developer.

Lukas



More information about the bazaar mailing list