[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
X Programming prob...
HI ,
I am facing a problem ( which I think maybe specific to Linux ).
I have written a simple X Windows program to test my new installation of RHL5.2
When I try to compile it with
"gcc -g -I/usr/include -I/usr/X11R6/include
- -l/usr/X11R6/lib/Xt -l/usr/X11R6/lib/Xmu
- -l/usr/X11R6/lib/X11 XHello.c "
I get an error saying "ld cannot open file /usr.../Xt
though the lib files are present there.
How ever when i replace all the "-l" options with a single one like "-L/usr/X11R6/lib"
I get the following message
"/tmp/cca005521.o : In function main
/tmp/cca005521.o(.text+0x9):
Undefined reference to XOpenDisplay
Undefined reference to XCreateWindow
Undefined reference to XCreateGC .....
and so on.
But the whole thing works perfectly well with the same commands on AIX/Solaris with out change.
Though I have written a lotta X pgms earlier I have not faced this problem.
Can anyone check out on this ?
My directory locations are pretty much default.
/usr/include
/usr/lib
/usr/X11R6/include
/usr/X11R6/lib
cheers,
Karthik K H
_________________________________________________________
Get your free @grabmail.com address at http://www.grabmail.com
powered by OutBlaze
- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
Linux India is NOT a forum for Microsoft/India/Pakistan/US/UK bashing.
Flame baits will not be tolerated. If you can appreciate satire read
http://www.templetons.com/brad/emily.html
------------------------------