From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,81565259b70047d6,start X-Google-Attributes: gid109fba,public X-Google-Thread: 103734,81565259b70047d6,start X-Google-Attributes: gid103734,public X-Google-Thread: 1164f8,81565259b70047d6,start X-Google-Attributes: gid1164f8,public X-Google-Thread: f78e5,81565259b70047d6,start X-Google-Attributes: gidf78e5,public X-Google-Thread: 10b6ac,81565259b70047d6,start X-Google-Attributes: gid10b6ac,public X-Google-ArrivalTime: 1992-11-14 00:31:12 PST Xref: sparky comp.sys.dec:5947 comp.windows.x.motif:7470 comp.windows.x:19119 comp.std.c++:1561 comp.lang.c++:16238 Path: sparky!uunet!vtserf!creatures!csgrad.cs.vt.edu!tlee From: tlee@csgrad.cs.vt.edu (Timothy Lee) Newsgroups: comp.sys.dec,comp.windows.x.motif,comp.windows.x,comp.std.c++,comp.lang.c++ Subject: C++, DECstations, and Motif (Q) Message-ID: <3804@creatures.cs.vt.edu> Date: 13 Nov 92 23:56:02 GMT Sender: usenet@creatures.cs.vt.edu Followup-To: comp.sys.dec Organization: VPI&SU Computer Science Department, Blacksburg, VA Hi everyone, I have difficulties getting c++ compilers (CC, gcc, g++) to compile C++ programs that contain X/Motif resources. Example: I have a C++ program that compiles and run correctly on a DECstation. After I add "#include " (or any other X/Motif-related ones) to the source code, all of the above mentioned compilers will give me compilation errors pointing to "Xlib.h". There is no need to actually invoke a function call or use any X/Motif-defined type for erros to occur. There is no problem running C++ program with Motif/X calls in RS/6000, but problems arise in all the DECstations that I can test on. These DECs are running ULTRIX 4.1, and the include files are located in the DEC designated directories. Please don't tell me it *should* work. I tried all I can think of, including putting "extern" around the include files. If someone has actually get it to work, please help. Please send your helpful reply to: tlee@csgrad.cs.vt.edu Tim Lee P.S. Even the unmodifed source code from Douglas Young choked. Young wrote a book on getting C++ to work under Motif.