Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.windows.x.intrinsics Frequently Asked Questions (FAQ)
Section - 49.+How to use the String definition from a C++ library?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Business Photos and Profiles ]


Top Document: comp.windows.x.intrinsics Frequently Asked Questions (FAQ)
Previous Document: 48.+How are created, managed, mapped, realized, etc. related?
See reader questions & answers on this topic! - Help others by sharing your knowledge
----------------------------------------------------------------------
The X11R4 and later header files are compatible with C++. The Motif
1.1 header files are usable as is inside extern "C" {...}. However, the
definition of String in Intrinsic.h can conflict with the libg++ other
String class and needs to be worked around.

What is the best way to work around this ?

	#define String XtString
	#include <X11/Intrinsic.h>
	#undef String

-- 
Pete Ware				ware@cis.ohio-state.edu
The Ohio State University, CIS Dept	http://www.cis.ohio-state.edu/~ware
2015 Neil Ave, Dreese Labs 774,		w/ (614) 292-8501
Columbus, OH 43210			h/ (614) 488-8516

User Contributions:

Comment about this article, ask questions, or add new information about this topic:

CAPTCHA




Top Document: comp.windows.x.intrinsics Frequently Asked Questions (FAQ)
Previous Document: 48.+How are created, managed, mapped, realized, etc. related?

Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
ware@cis.ohio-state.edu





Last Update March 27 2014 @ 02:11 PM