Gilad Ben-Yossef <[EMAIL PROTECTED]> writes:
> Hi,
>
> I have a program which I want it's binary to contain a "version string",
> the kind of string RCS automagically makes for you if you ask it nicely.
>
> Now, if I put it in as a const static variable like so:
> const static char * Ver = "$Id
On Wed, 2 Aug 2000, Nadav Har'El wrote:
> On Wed, Aug 02, 2000, Gilad Ben-Yossef wrote about "Re: A silly question about GCC":
> > > > the kind of string RCS automagically makes for you if you ask it nicely.
> >
> > > >
> > > > GC
Gilad Ben-Yossef wrote:
> Now, if I put it in as a const static variable like so:
> const static char * Ver = "$Id$";
try making it an array of char, as in:
const static char Ver[] = "$Id$"
compiling the following with "gcc hello.c -Wall -ansi -pedantic -o
hello" gives me no errors.
#include "
On Wed, Aug 02, 2000, Gilad Ben-Yossef wrote about "Re: A silly question about GCC":
> > > the kind of string RCS automagically makes for you if you ask it nicely.
>
> > >
> > > GCC (rightfuly) complains about the string not being used. GCC does
On Wed, 2 Aug 2000, Omer Musaev wrote:
> Gilad Ben-Yossef wrote:
> > I have a program which I want it's binary to contain a "version string",
> > the kind of string RCS automagically makes for you if you ask it nicely.
> >
> > GCC (rightfuly) complains about the string not being used. GCC does
>
Gilad Ben-Yossef wrote:
> Hi,
>
> I have a program which I want it's binary to contain a "version string",
> the kind of string RCS automagically makes for you if you ask it nicely.
>
> Now, if I put it in as a const static variable like so:
> const static char * Ver = "$Id$";
>
> GCC (rightfuly)
Hi,
I have a program which I want it's binary to contain a "version string",
the kind of string RCS automagically makes for you if you ask it nicely.
Now, if I put it in as a const static variable like so:
const static char * Ver = "$Id$";
GCC (rightfuly) complains about the string not being u