[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: compiling X application



thanks prabhu it worked seems that my libX11.a is corrupt..
Iam using Red Hat 6.0

thnks again
anurag

On Wed, 17 Nov 1999, you wrote:
> hi,
> 
> >>>>> "Anurag" == Anurag Shekhar <anurag@xxxxxxxxxxxxxxxxx> writes:
> <snipped all over>
>     Anurag> three : three.o g++ -o three three.o
>     Anurag> /usr/X11R6/lib/libX11.a /usr/X11R6/lib/libXt.a
>     Anurag> Selection.o(.text+0x2e59): undefined reference to
>     Anurag> `XSaveContext' Selection.o(.text+0x2ed0): undefined
>     Anurag> reference to `XFindContext'
> 
> 	I dont know why it doesnt work since XSaveContext appears to
> be available in libX11.so on my machine but why are you statically
> linking the libs.  Try this
> 
> g++ -o three three.o -L/usr/X11R6/lib -lX11 -lXt
> 
> If it works then it looks like your libX11.a is corrupt.  If not try
> reinstalling the X libs.  BTW What distro are you using?  It helps to
> know.
> 
> prabhu
> ---
> Send e-mail to 'ilugc-request@xxxxxxxxxxxxxxxxxx' with 'unsubscribe' 
> in either the subject or the body to unsubscribe from this list.
---
Send e-mail to 'ilugc-request@xxxxxxxxxxxxxxxxxx' with 'unsubscribe' 
in either the subject or the body to unsubscribe from this list.