public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* How to avoid typedef's "redefinition of" error
@ 2003-05-02 17:21 Li, Wei
  0 siblings, 0 replies; only message in thread
From: Li, Wei @ 2003-05-02 17:21 UTC (permalink / raw)
  To: gcc-help

Hi,

I used gcc (not g++) (with Red Hat Linux 8.0) to compile a C file. I got
a "redefinition of UCHAR" error when two different 3rd party headers
typedef it with identical definition:
typedef unsigned char UCHAR;

If I use g++, I only got a warning. If I cannot use g++ for other
reasons (other code segment will not compile) and I do not want to
modify the 3rd party headers, how can I avoid this error using gcc? Is
there any compiler option to do so?

Thank you very much!
Wei

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-02 17:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-02 17:21 How to avoid typedef's "redefinition of" error Li, Wei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).