LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Motif/SuSE10.1 compile error (https://www.linuxquestions.org/questions/programming-9/motif-suse10-1-compile-error-501938/)

Geoff_Mac 11-15-2006 02:56 PM

Motif/SuSE10.1 compile error
 
Hi, like a lot of people, I recently upgraded to SuSE 10.1. I have several programs that work together, and I've been working for a while on one that has no GUI. Now I find I have a problem with one of my GUI programs and need to recompile it.

In the first source code file the first line to compile is:
#include <Xm/Xm.h>

Xm.h includes Intrinsic.h as it's first include file

I'm getting the following compile error:

gcc data.c
In file included from /usr/include/Xm/Xm.h:56,
from data.c:10:
/usr/include/X11/Intrinsic.h:242: error: expected declaration specifiers or ‘...’ before ‘*’ token
/usr/include/X11/Intrinsic.h:249: error: ‘Boolean’ declared as function returning a function
/usr/include/X11/Intrinsic.h:404: error: ‘XtWorkProc’ declared as function returning a function
/usr/include/X11/Intrinsic.h:413: error: ‘XtFilePredicate’ declared as function returning a function
/usr/include/X11/Intrinsic.h:425: error: ‘XtConvertSelectionProc’ declared as function returning a function

and a whole bunch of similar errors

Now I haven't changed a line of code, I just want to recompile. Any ideas what could be wrong? The compiler is obviously finding the files. And I can see nothing in Intrinsic.h that should cause an error.

Help!

Geoff_Mac 11-15-2006 05:47 PM

Well, ahem, I found the problem. Is no one on the net using SuSE 10.1 and Motif????

Heres the fix:

in Xm/Xm.h go in and find line 158. The

/*typedef char Boolean;*/

should be uncommented. What idiot commented that out? Good QC on that one folks!


All times are GMT -5. The time now is 02:37 PM.