ISADER@HHEOUH50.BITNET (DERK EDERVEEN <ISADER@HHEOUH51>) (02/17/89)
I'm a novice X-windows application programmer, and just started my way through the X toolkit library. In the sample program provided in 4.5.3. the static declaration doesn't get through the compiler: static Arg arglist = { {XtNfunction, (XtArgVal) quit}, {XtNname, (XtArgVal) "quit"}, <------ }; with void quit() { exit(); } returns the error: compiler error: initialization alignment error for the line marked with <------ . I must be very stupid, but I really don't understand this and all attempts to correct it failed. I'm using the MIT's X 10.4 on and IBM RT PC running AIX 2.2. This is an IBM-specific X-Windows implementation which differs on some minor points. Something that may be important is the fact that an int occupies 32 bits in IBM RT PC C. I know that this is an old version, but we will upgrade to X11 in some time and in the meantime I want to practice. Please help me out of this problem. If someone has documentation on the errors in the X toolkit libraries or RT PC AIX 2.2 modifications to X this would be very much appreciated. I cannot use ftp. Please respond directly to me also because my mail-feed is suffering at the moment. Thanks in advance, Derk. -- where's my coffee -- Derk Ederveen FB/RC/T&E MK 033 e-mail: isader@hheouh51.bitnet Open Universiteit, Valkenburgerweg 176 tel: +31/0 45-762301 P.O. Box 2960, NL-6401 DL Heerlen telex 56559 telefax 711486 ------E-------S-------P-------E-------R-------A-------N-------T-------O------ private: De Heugden 160, NL-6411 DR Heerlen, tel: +31/0 45-740103 admin. IJK 89: Postbus 528, NL-6200 AM Maastricht SPACO POR REKLAMO !!