Hello,
i was trying to compile the latest cvs on a fedora core 6 with gcc 4.1.1 and i got the following error that I solved adding a -lXft switch to the compiling line.
drag.o: In function `Get_window_coords':
/home/giellamo/games/exult/xdrag.cc:51: undefined reference to `XQueryTree'
/home/giellamo/games/exult/xdrag.cc:53: undefined reference to `XFree'
/home/giellamo/games/exult/xdrag.cc:59: undefined reference to `XGetWindowAttributes'
xdrag.o: In function `Xdnd':
/home/giellamo/games/exult/xdrag.cc:88: undefined reference to `XInternAtom'
/home/giellamo/games/exult/xdrag.cc:89: undefined reference to `XInternAtom'
/home/giellamo/games/exult/xdrag.cc:90: undefined reference to `XInternAtom'
/home/giellamo/games/exult/xdrag.cc:91: undefined reference to `XInternAtom'
/home/giellamo/games/exult/xdrag.cc:93: undefined reference to `XInternAtom'
xdrag.o:/home/giellamo/games/exult/xdrag.cc:94: more undefined references to `XInternAtom' follow
xdrag.o: In function `Xdnd::select_msg(XSelectionEvent&)':
/home/giellamo/games/exult/xdrag.cc:258: undefined reference to `XGetAtomName'
/home/giellamo/games/exult/xdrag.cc:275: undefined reference to `XGetWindowProperty'
/home/giellamo/games/exult/xdrag.cc:307: undefined reference to `XFree'
xdrag.o: In function `Xdnd::client_msg(XClientMessageEvent&)':
/home/giellamo/games/exult/xdrag.cc:132: undefined reference to `XGetAtomName'
/home/giellamo/games/exult/xdrag.cc:190: undefined reference to `XSendEvent'
/home/giellamo/games/exult/xdrag.cc:154: undefined reference to `XGetWindowProperty'
/home/giellamo/games/exult/xdrag.cc:200: undefined reference to `XConvertSelection'
xdrag.o: In function `Xdnd':
/home/giellamo/games/exult/xdrag.cc:108: undefined reference to `XChangeProperty'
/home/giellamo/games/exult/xdrag.cc:108: undefined reference to `XChangeProperty'
collect2: ld returned 1 exit status
Compile error with Xft
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Re: Compile error with Xft
I solved this by editing the Makefile and adding -lX11 to the LIBS variable.
Makefile:
...
LIBS = -lasound
...
after change:
...
LIBS = -lasound -lX11
...
Makefile:
...
LIBS = -lasound
...
after change:
...
LIBS = -lasound -lX11
...
Re: Compile error with Xft
Glad you were able to get past this. I'd expect that autoconf/automake would have added the "-lX11".