Operating System - HP-UX
1837896 Members
3459 Online
110122 Solutions
New Discussion

Problems compiling program using Tcl/Tk (missing files)

 
reis
Advisor

Problems compiling program using Tcl/Tk (missing files)

Hi to all,
I tried to compile a program with gcc 3.3.1, which uses tcl/tk (8.4) and I get an error message that some files are missing:
X.h
Xfuncptoto.h
Xosdefs.h
Where can I get these files or what package have I to install ?

Kind regards
Walter
profil
3 REPLIES 3
Mark Grant
Honored Contributor

Re: Problems compiling program using Tcl/Tk (missing files)

My guess is that this is either a Linux box or you have installed XFree86 ona HP box. In either case, you need to install the X development kit.

Please confirm which OS this is on. Oh and by the way, lots of things don't compile correctly with gcc 3.3.1 though I don't know if tcl/tk is one of those.
Never preceed any demonstration with anything more predictive than "watch this"
Mehdi_1
Regular Advisor

Re: Problems compiling program using Tcl/Tk (missing files)

Hi

You need to add :

CPPFLAGS="-I/usr/include/X11R6/X11"

to your compile line. Or even you can add that to your env.

Also you need to add:

LDFLAGS="-L/usr/lib/X11R6" for your link line.

That is all depending that you have these on your machine.


Mehdi
Mehdi_1
Regular Advisor

Re: Problems compiling program using Tcl/Tk (missing files)

Hi again!

The information that I given above is with the assumption of you have HPUX-11.00 platform. But If you have any other platform or system the above path may be changed.

Mehdi