home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!agate!cory.Berkeley.EDU!ewang
- From: ewang@cory.Berkeley.EDU (Edward S.T. Wang)
- Newsgroups: comp.windows.x.motif
- Subject: Problem with C++ keywords in motif include files
- Date: 24 Dec 1992 01:58:23 GMT
- Organization: University of California, at Berkeley
- Lines: 20
- Distribution: inet
- Message-ID: <1hb5fvINNlsu@agate.berkeley.edu>
- NNTP-Posting-Host: cory.berkeley.edu
-
-
- I'm trying to compile a C++ program using Motif 1.1.3 on SunOS 4.1.1, and
- I'm running into compilation errors due to the use of C++ keywords such
- as "class" and "new" in the include files.
- In file X11/ShellP.h, the struct ApplicationShellPart contains a
- char * called "class" which is a C++ keyword. In file Xm/Traversal.h,
- the struct _XmFocusMovedCallbackStruct contains a Widget called "new".
-
- The program compiles on a C compiler; however, I'd like to get
- this program to interface with C++ code so preferably I'd like a solution
- that would allow me to compile everything using a C++ compiler. Is there
- a simple way to solve this problem, or am I stuck? If I can't use a C++
- compiler all the way, I'll be in the unfortunate position of having to call
- C++ functions from within a C program(for the callbacks), and I don't even
- want to start thinking of that problem!
-
-
-
- Thanks,
- Ed
-