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 Help > link X11 automa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 3787 of 3882
Post > Topic >>

link X11 automatically

by Frank Swarbrick <fswarbrick@[EMAIL PROTECTED] > Jun 28, 2008 at 11:49 PM

I was trying to compile (make) a program that uses X11.  Below is the 
compile line followed by the error message:

gcc  hi.o s7_comp.a s7_data.a seed7_05.a -lX11 -lncurses -lm -o hi
/usr/bin/ld: can't locate file for: -lX11

After some searching I found the location of libX11:
/usr/X11R6/lib/libX11.dylib

So I made this change to the makefile:

LFLAGS = -L/usr/X11R6/lib

And now it works:
gcc -L/usr/X11R6/lib hi.o s7_comp.a s7_data.a seed7_05.a -lX11 -lncurses 
-lm -o hi

So my question is, is there a way to have /usr/X11R6/lib added to the 
standard ld lib search chain?  This program is built on Linux, which I 
assume has X11 in the standard search chain.  (Perhaps a bad assumption!)

Thanks,
Frank
 




 8 Posts in Topic:
link X11 automatically
Frank Swarbrick <fswar  2008-06-28 23:49:55 
Re: link X11 automatically
Ben Artin <macdev@[EMA  2008-06-29 02:48:03 
Re: link X11 automatically
Frank Swarbrick <fswar  2008-06-29 21:07:05 
Re: link X11 automatically
Paul Floyd <root@[EMAI  2008-06-30 19:37:03 
Re: link X11 automatically
Frank Swarbrick <fswar  2008-07-04 22:59:21 
Re: link X11 automatically
Sherman Pendley <spamt  2008-07-05 02:08:37 
Re: link X11 automatically
Frank Swarbrick <fswar  2008-07-05 12:47:51 
Re: link X11 automatically
Sherman Pendley <spamt  2008-07-05 15:18:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Fri Dec 5 11:02:04 CST 2008.