This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: pragma warnings



> Hi Jody,
>
> : A followup to my own email (but not an answer, just another question).
> :
> : I was using pragma comment to store cvs information in the
> binary.  Another
> : compiler I use uses pragma ident.  egcs has neither.  How
> should I do this
> : with egcs?
>
> Why not use a string ?
>
> eg
>
>   char * message_from_cvs = "CVS: blah blah blah";


If you have this in a header file, you get name clashes (or you have to
manage the name of this variable).

However, as noted before, #ident is the answer.

Thanks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]