Parent document is top of "Motif FAQ (Part 7 of 9)"
Previous document is "232) Is there a C++ binding for Motif?"
Next document is "234) How can I have a C++ member function in a callback?"

233) How can I avoid C++ String class and typedef char *String

conflicts?  We're using the USL C++ Standard Components which has the String
class.  This, however, conflicts with the typedef char *String found in
<X11/Intrinsic.h>

[Last modified: Oct 94]

Answer:  This is very simple to workaround.  I agree that it is "wrong" but
all you need to do is:

#define String XtStringType
#include "all the X files"
#undef String


This will translate the offending symbol.

Thanks to Doug Rand <drand@sgi.com>

Parent document is top of "Motif FAQ (Part 7 of 9)"
Previous document is "232) Is there a C++ binding for Motif?"
Next document is "234) How can I have a C++ member function in a callback?"