From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,fcfe7a3aa86011e4,start X-Google-Attributes: gid111c93,public From: Jeremy Schofield Subject: g++ and Xt routine on a Redhat 5.0 system Date: 1998/03/05 Message-ID: <34FF097D.816FE309@chem.utoronto.ca>#1/1 X-Deja-AN: 331188666 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: Department of Chemistry, University of Toronto Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha Hello, I've been having problems running some code I wrote with a new 533 MHz Durango II system (from Aspen). The following program compiles cleanly with both gcc and g++ but the g++ version seg. faults when the Xt library function XtVaAppInitialize is called. It works fine on a Linux Pentium system with an older version of Redhat (4.0). Any ideas? --------------- code ---------- #include XtAppContext app_context; Widget topLevel; int main(int argc,char** argv){ XtSetLanguageProc(NULL, (XtLanguageProc)NULL, NULL); topLevel = XtVaAppInitialize( &app_context, /* Application context */ "XBox1", /* Application class */ NULL, 0, /* command line option list */ &argc, argv, /* command line args */ NULL, /* for missing app-defaults file */ NULL); /* terminate varargs list */ return (0); } _________________________________end code __________________ Thanks, Jeremy -- Jeremy Schofield Chemical Physics Theory Group telephone: 416-978-4376 Department of Chemistry fax: 416-978-8775 University of Toronto Toronto, Ontario M5S 3H6 Canada email: jmschofi@chem.utoronto.ca