Path: utzoo!attcan!uunet!wuarchive!csd4.csd.uwm.edu!bionet!apple!usc!bloom-beacon!odi.COM!bob From: bob@odi.COM (Bob Miner) Newsgroups: comp.windows.x Subject: Re: need help Message-ID: <8909061401.AA03382@hendrix.odi.com> Date: 6 Sep 89 14:01:22 GMT References: <724@rodan.acs.syr.edu> Sender: root@bloom-beacon.MIT.EDU Organization: The Internet Lines: 28 > Has anybody done programming under GNU-C++/X-WindowsV11R3 environment? > I would be very glad to hear suggestions or solutions to incompatibility > problems. > > Matt I haven't been using GNU-C++, but I have been using AT&T's cfront with X11R3 and Sun's cc. To be able to make X function calls directly from C++, I had to create a set of header files which redefine X functions before including X header files and then create my own function prototypes with arguments. This is very similar, if not identical, to what a person using an ANSI-C compiler would have to do to get the compiler to do function argument checking. I'd be happy to send these files to you, or anyone else. If there's sufficient interest I'll post them to comp.sources.x. I've got three files - ansiXlib.h, ansiXt.h and ansiXm.h (Xlib, Xt and Motif's Xm respectively). The Xlib file is essentially a cleaned-up version of what came with InterViews on the X11R3 tape. I've been somewhat reluctant to mail them out until recently as I've been testing them. I'm sure they've got errors and are incomplete still, but they're a good place to start and errors/incompletenesses are easy to fix (you get a compiler error and you fix or add the offending function prototype). I've been using them for a few weeks now and they work fine. Bob Miner - bob@odi.com Object Design Inc. 1 New England Executive Park Burlington, MA 01803 (617) 270-9797