Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer Tools > How to find the...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 614 of 630
Post > Topic >>

How to find the X Window header files?

by Lou Pecora <pecora@[EMAIL PROTECTED] > Feb 8, 2008 at 04:06 PM

How to get compiler step using Gnu C compiler to find the X Window 
header files?

I am trying to compile some older Unix code that uses X Windows (X11R6). 
I installed the X11 files using the optional install on my system CD for 
Mac OS X 10.4 (Mac Book Pro). The compile/link is done using a make file 
and the Gnu C compiler in a Terminal.  But including X Windows headers 
doesn't work.  First they're not in the usual Unix place (/usr/X11R6/), 
but in the Developer folder under the root directory.  If I use that 
pathname, I still can't load other X Windows headers that are included 
in those files since they are all referred to using the "shortcut" 
X11/Xlib.h, etc. i.e. the compiler has to know what full path X11/ 
really defines.  But I guess it's not defined. Not sure how to pass that 
info to the compiler.  Apple apparently wants X11 stuff in the developer 
folder not /usr.  

Anyone know how to get around this? How does one properly include X11 
headers using a vanilla gcc compile in the Terminal?  I did it with OS X 
10.3, but I can't recall how since my old laptop died. 

Thanks for any tips.

(Yes, I've googled for an hour and found nothing along the lines I need).

-- 
-- Lou Pecora
 




 5 Posts in Topic:
How to find the X Window header files?
Lou Pecora <pecora@[EM  2008-02-08 16:06:00 
Re: How to find the X Window header files?
Jeffrey Jones <jajvj@[  2008-02-09 00:13:10 
Re: How to find the X Window header files?
Lou Pecora <pecora@[EM  2008-02-09 08:55:23 
Re: How to find the X Window header files?
Jeffrey Jones <jajvj@[  2008-02-09 22:29:33 
Re: How to find the X Window header files?
Lou Pecora <pecora@[EM  2008-02-11 18:03:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 19 23:30:41 CDT 2008.