Re: A silly question about GCC

2000-08-02 Thread Oleg Goldshmidt
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

Re: A silly question about GCC

2000-08-02 Thread Gilad Ben-Yossef
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

Re: A silly question about GCC

2000-08-02 Thread mulix
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 "

Re: A silly question about GCC

2000-08-02 Thread Nadav Har'El
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

Re: A silly question about GCC

2000-08-02 Thread Gilad Ben-Yossef
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 >

Re: A silly question about GCC

2000-08-02 Thread Omer Musaev
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)

A silly question about GCC

2000-08-02 Thread Gilad Ben-Yossef
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