Trouble with Print.h

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

7 posts / 0 new
Last post
Trouble with Print.h

Submitted by vcable on Mon, 10/13/2008 - 02:37.

Anyone else had trouble compiling motif code having #includes of Print.h & Xm.h?

Thu, 10/16/2008 - 00:55#1

Thu, 10/16/2008 - 00:55#1

vcable

Re: Trouble with Print.h & Xm.h

I'm sorry I said so little in my original post. I could not get the posting to work if I included any real info. But, I'll try it again here. I just finished installing fc9 x86_64 along with openmotif-2.3.1-1.fc9.x86_64.rpm & openmotif-devel-2.3.1-1.fc9.x86_64.rpm (for header files). However, now I can't seem to compile X & Motif code that did compile fine before.

-- Vaughn

 

Thu, 10/16/2008 - 00:58#2

Thu, 10/16/2008 - 00:58#2

vcable

Re: Trouble with Print.h

Here are the error messages:
In file included from /usr/include/Xm/ArrowBG.h:45,
from xmainarea.c:7:
/usr/include/Xm/Xm.h:76:34: error: X11/extensions/Print.h: No such file or directory

Thu, 10/16/2008 - 01:09#3

Thu, 10/16/2008 - 01:09#3

vcable

Re: Trouble with Print.h

I still can't get any significant content posted here. I can only do it piecemeal, so here's some more:
I noticed that /usr/include/X11/extensions does not contain a Print.h file. So I inserted a soft link over to /usr/include/Xm/Print.h where it does exist, but now I get error: expected declaration specifiers or "..." before "XPFinishProc"

 

 

Thu, 10/16/2008 - 01:15#4

vcable

Re: Trouble with Print.h

Just discovered this posting site will not except single quotes. So, now here is the whole picture of errors:

gcc -O -w -s -D_NO_PROTO -I /usr/include/X11/Xm -I /usr/include/X11 -I /usr/include -c xmainarea.c
In file included from /usr/include/Xm/ArrowBG.h:45,
from xmainarea.c:7:
/usr/include/Xm/Xm.h:76:34: error: X11/extensions/Print.h: No such file or directory
In file included from /usr/include/Xm/ArrowBG.h:45,
from xmainarea.c:7:
/usr/include/Xm/Xm.h:858: error: expected specifier-qualifier-list before "XPContext"
make: *** [xmainarea.o] Error 1

Then after adding soft link to Print.h in another dir, the error messages are:

gcc -O -w -s -D_NO_PROTO -I /usr/include/X11/Xm -I /usr/include/X11 -I /usr/include -c xmainarea.c
In file included from /usr/include/Xm/Xm.h:77,
from /usr/include/Xm/ArrowBG.h:46,
from xmainarea.c:8:
/usr/include/X11/extensions/Print.h:46: error: expected declaration specifiers or "..." before "XPFinishProc"
In file included from /usr/include/Xm/ArrowBG.h:46,
from xmainarea.c:8:
/usr/include/Xm/Xm.h:858: error: expected specifier-qualifier-list before "XPContext"
make: *** [xmainarea.o] Error 1

Can anyone make sense of this? I sure cannot.

-- Vaughn

 

Fri, 10/17/2008 - 07:09#5

Fri, 10/17/2008 - 07:09#5

Yuriy Syrota

Re: Trouble with Print.h

Please, install package libXp-devel

 

 

Sat, 10/18/2008 - 03:19#6

vcable

Re: Trouble with Print.h

I had installed libXp but not libXp-devel. It works fine now. Thank you...