LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 11-15-2006, 03:56 PM   #1
Geoff_Mac
LQ Newbie
 
Registered: May 2004
Distribution: SuSE
Posts: 19

Rep: Reputation: 0
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!
 
Old 11-15-2006, 06:47 PM   #2
Geoff_Mac
LQ Newbie
 
Registered: May 2004
Distribution: SuSE
Posts: 19

Original Poster
Rep: Reputation: 0
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opera and an error about motif AlexMax Debian 2 11-11-2005 10:02 PM
Motif install error degraffenried13 Linux - General 0 01-26-2004 07:31 PM
Motif libXm.so.2 install error degraffenried13 Linux - General 0 01-25-2004 06:07 PM
Can't get MOTIF to compile with my libraries... jwblair Programming 2 04-28-2002 07:35 PM
xawtv -- motif error on make mtdaly Linux - General 1 02-02-2002 05:58 PM


All times are GMT -5. The time now is 04:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration