Go to the first, previous, next, last section, table of contents.

X11 conflicts with libg++ in definition of String

"X11 and Motif define String, and this conflicts with the String class in libg++. How can I use both together?"

One possible method is the following:

#define String XString
#include <X11/Intrinsic.h>
/* include other X11 and Motif headers */
#undef String

and remember to use the correct String or XString when you declare things later.


Go to the first, previous, next, last section, table of contents.