C++ probs (__GNU_C__?)

From: Akuma/Chris Baggett/DOOMer (doomer@BAYOU.COM)
Date: 12/08/97


ok, i was looking through the sysdep.h file and noticed a slight
difference between that and my comm.h file.

__GNU_C__ and __GNUC__
well, apparently the Second is right, not the first.
so i changed it (this was for the __attribute__ thing for send_to_char(), etc)
anyway,
I got this error

comm.h:24: format string arg not a string type

#ifdef __GNUC__
void char_data::printf(const char *messg, ...)
        __attribute__ ((format (printf, 1, 2)));  // <-- Line 24
#else
void char_data::printf(const char *messg, ...);
#endif

what does that mean?
that's the only error i got, it worked fine before,
when i had it as
#ifdef __GNU_C__
because it would automatically go to the #else section
(b/c it's supposed to be GNUC not GNU_C)
anyway, help on this would be appreciated.

Akuma the Raging Coder

  +------------------------------------------------------------+
  | "The poets talk about love, but what I talk about is DOOM, |
  |      because in the end, DOOM is all that counts." -       |
  |   Alex Machine/George Stark/Stephen King, The Dark Half    |
  |        "Nothing is IMPOSSIBLE, Just IMPROBABLE"            |
  |   "Easier Said Than Done, But Better Done Than Said..."    |
  +------------------------------------------------------------+


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST