[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

problem with linking in xlib6g with gcc



hello;
i have installed xlib6g-dev and made a small xlib program. 
it compiles but when it comes to linking it gives:
unresolved reference: XOpenDisplay (+other guff).

i would like to know what has to be set or what command line options have to be given.
the command line options i give are:

gcc -o test test.c -lxlib6g # this didnt link
#then i tried:
gcc -o test test.c -lX11 # this still didnt work,
#then :
gcc -o test test.c -l/usr/X11R6/lib/X11
# this still didnt work.

it would be great if somebody could help me on this.
best wishes for the future.
simon


Who needs Cupid?  Matchmaker.com is the place to meet somebody.
FREE Two-week Trial Membership at http://www.matchmaker.com/home?rs=200015



Reply to: