From: Jeremy Schofield <jmschofi@chem.utoronto.ca>
Subject: g++ and Xt routine on a Redhat 5.0 system
Date: 1998/03/05 [thread overview]
Message-ID: <34FF097D.816FE309@chem.utoronto.ca> (raw)
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 <X11/Intrinsic.h>
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
reply other threads:[~1998-03-05 5:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox