Trouble with Print.h

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


vcable

vcable's picture

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


vcable

vcable's picture

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


vcable

vcable's picture

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"


vcable

vcable's picture

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


Yuriy Syrota

Yuriy Syrota's picture

Re: Trouble with Print.h

Please, install package libXp-devel


vcable

vcable's picture

Re: Trouble with Print.h

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