[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
    Search the FAQ Archives

Single Page

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


49.+How to use the String definition from a C++ library?


----------------------------------------------------------------------
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



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 October 23 2009 @ 09:20 AM

Some parts © 2009 Advameg, Inc.