|
这个软件在用老的XORG6.7版本的时候,可以正常编译。但现在因为用XORG6.8.1,竟然编译通不过了。不知道什么地方出问题拉。
gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -march=pentium4 -fomit-frame-pointer -pipe -Wall -I/usr/X11R6/include -Wall -c torsmo.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -march=pentium4 -fomit-frame-pointer -pipe -Wall -I/usr/X11R6/include -Wall -c fs.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -march=pentium4 -fomit-frame-pointer -pipe -Wall -I/usr/X11R6/include -Wall -c linux.c
gcc -O2 -march=pentium4 -fomit-frame-pointer -pipe -Wall -I/usr/X11R6/include -Wall -o torsmo torsmo.o fs.o linux.o
torsmo.o(.text+0xbe): In function `get_color':
: undefined reference to `XParseColor'
torsmo.o(.text+0x112): In function `get_color':
: undefined reference to `XAllocColor'
torsmo.o(.text+0x251e): In function `text_size_updater':
: undefined reference to `XTextWidth'
torsmo.o(.text+0x258d): In function `text_size_updater':
: undefined reference to `XTextWidth'
torsmo.o(.text+0x279a): In function `draw_string':
: undefined reference to `XDrawString'
torsmo.o(.text+0x27cc): In function `draw_string':
: undefined reference to `XTextWidth'
torsmo.o(.text+0x28d3): In function `draw_line':
: undefined reference to `XSetLineAttributes'
torsmo.o(.text+0x2917): In function `draw_line':
: undefined reference to `XDrawLine'
torsmo.o(.text+0x29b0): In function `draw_line':
: undefined reference to `XSetLineAttributes'
torsmo.o(.text+0x29de): In function `draw_line':
: undefined reference to `XSetDashes'
torsmo.o(.text+0x2a74): In function `draw_line':
: undefined reference to `XSetLineAttributes'
torsmo.o(.text+0x2ab0): In function `draw_line':
: undefined reference to `XDrawRectangle'
torsmo.o(.text+0x2b00): In function `draw_line':
: undefined reference to `XFillRectangle'
torsmo.o(.text+0x2b36): In function `draw_line':
: undefined reference to `XSetForeground'
torsmo.o(.text+0x2bd5): In function `draw_text':
: undefined reference to `XSetLineAttributes'
torsmo.o(.text+0x2c03): In function `draw_text':
: undefined reference to `XSetDashes'
torsmo.o(.text+0x2c68): In function `draw_text':
: undefined reference to `XDrawRectangle'
torsmo.o(.text+0x2cee): In function `draw_text':
: undefined reference to `XSetLineAttributes'
torsmo.o(.text+0x2d51): In function `draw_stuff':
: undefined reference to `XSetForeground'
torsmo.o(.text+0x2d90): In function `draw_stuff':
: undefined reference to `XSetForeground'
torsmo.o(.text+0x2ddd): In function `draw_stuff':
: undefined reference to `XSetForeground'
torsmo.o(.text+0x2e5e): In function `clear_text':
: undefined reference to `XClearArea'
torsmo.o(.text+0x2e9f): In function `load_font':
: undefined reference to `XLoadQueryFont'
torsmo.o(.text+0x2edf): In function `load_font':
: undefined reference to `XLoadQueryFont'
torsmo.o(.text+0x2efb): In function `load_font':
: undefined reference to `XFreeFont'
torsmo.o(.text+0x2f94): In function `hup_handler':
: undefined reference to `XSetFont'
torsmo.o(.text+0x2fe2): In function `clean_up':
: undefined reference to `XDestroyWindow'
torsmo.o(.text+0x2ff8): In function `clean_up':
: undefined reference to `XFreeGC'
torsmo.o(.text+0x3041): In function `clean_up':
: undefined reference to `XFlush'
torsmo.o(.text+0x3066): In function `main_loop':
: undefined reference to `XCreateRegion'
torsmo.o(.text+0x307c): In function `main_loop':
: undefined reference to `XFlush'
torsmo.o(.text+0x3089): In function `main_loop':
: undefined reference to `XPending'
torsmo.o(.text+0x30a0): In function `main_loop':
: undefined reference to `XPending'
torsmo.o(.text+0x30b9): In function `main_loop':
: undefined reference to `XNextEvent'
torsmo.o(.text+0x3114): In function `main_loop':
: undefined reference to `XUnionRectWithRegion'
torsmo.o(.text+0x3183): In function `main_loop':
: undefined reference to `XGetWindowAttributes'
torsmo.o(.text+0x327e): In function `main_loop':
: undefined reference to `XQueryTree'
torsmo.o(.text+0x328a): In function `main_loop':
: undefined reference to `XFree'
torsmo.o(.text+0x32be): In function `main_loop':
: undefined reference to `XSetWindowBackgroundPixmap'
torsmo.o(.text+0x32da): In function `main_loop':
: undefined reference to `XClearWindow'
torsmo.o(.text+0x32f0): In function `main_loop':
: undefined reference to `XEmptyRegion'
torsmo.o(.text+0x3312): In function `main_loop':
: undefined reference to `XSetRegion'
torsmo.o(.text+0x331f): In function `main_loop':
: undefined reference to `XDestroyRegion'
torsmo.o(.text+0x3324): In function `main_loop':
: undefined reference to `XCreateRegion'
torsmo.o(.text+0x3333): In function `main_loop':
: undefined reference to `XFlush'
torsmo.o(.text+0x33be): In function `main_loop':
: undefined reference to `XResizeWindow'
torsmo.o(.text+0x33f8): In function `main_loop':
: undefined reference to `XMoveWindow'
torsmo.o(.text+0x3452): In function `main_loop':
: undefined reference to `XUnionRectWithRegion'
torsmo.o(.text+0x35d6): In function `find_subwindow':
: undefined reference to `XQueryTree'
torsmo.o(.text+0x35fc): In function `find_subwindow':
: undefined reference to `XGetWindowAttributes'
torsmo.o(.text+0x3632): In function `find_subwindow':
: undefined reference to `XFree'
torsmo.o(.text+0x36e6): In function `update_workarea':
: undefined reference to `XInternAtom'
torsmo.o(.text+0x3737): In function `update_workarea':
: undefined reference to `XGetWindowProperty'
torsmo.o(.text+0x375a): In function `update_workarea':
: undefined reference to `XFree'
torsmo.o(.text+0x377e): In function `update_workarea':
: undefined reference to `XFree'
torsmo.o(.text+0x37a3): In function `update_workarea':
: undefined reference to `XInternAtom'
torsmo.o(.text+0x37f7): In function `update_workarea':
: undefined reference to `XGetWindowProperty'
torsmo.o(.text+0x388a): In function `find_window_to_draw':
: undefined reference to `XQueryTree'
torsmo.o(.text+0x38b9): In function `find_window_to_draw':
: undefined reference to `XInternAtom'
torsmo.o(.text+0x3915): In function `find_window_to_draw':
: undefined reference to `XGetWindowProperty'
torsmo.o(.text+0x3949): In function `find_window_to_draw':
: undefined reference to `XFree'
torsmo.o(.text+0x39e4): In function `find_window_to_draw':
: undefined reference to `XFree'
torsmo.o(.text+0x39f6): In function `find_window_to_draw':
: undefined reference to `XFree'
torsmo.o(.text+0x3a11): In function `find_window_to_draw':
: undefined reference to `XFree'
torsmo.o(.text+0x3a1d): In function `find_window_to_draw':
: undefined reference to `XFree'
torsmo.o(.text+0x3a4e): In function `init_X':
: undefined reference to `XOpenDisplay'
torsmo.o(.text+0x3aae): In function `init_X':
: undefined reference to `XDisplayName'
torsmo.o(.text+0x3b06): In function `init_window':
: undefined reference to `XGetWindowAttributes'
torsmo.o(.text+0x3b4a): In function `init_window':
: undefined reference to `XSelectInput'
torsmo.o(.text+0x3bfe): In function `init_window':
: undefined reference to `XCreateWindow'
torsmo.o(.text+0x3c2e): In function `init_window':
: undefined reference to `XSetClassHint'
torsmo.o(.text+0x3c4c): In function `init_window':
: undefined reference to `XStoreName'
torsmo.o(.text+0x3c62): In function `init_window':
: undefined reference to `XClearWindow'
torsmo.o(.text+0x3c8a): In function `init_window':
: undefined reference to `XMoveWindow'
torsmo.o(.text+0x3ca8): In function `init_window':
: undefined reference to `XSetWindowBackgroundPixmap'
torsmo.o(.text+0x3cc5): In function `init_window':
: undefined reference to `XInternAtom'
torsmo.o(.text+0x3cec): In function `init_window':
: undefined reference to `XInternAtom'
torsmo.o(.text+0x3d08): In function `init_window':
: undefined reference to `XMapWindow'
torsmo.o(.text+0x3d57): In function `init_window':
: undefined reference to `XChangeProperty'
torsmo.o(.text+0x3db6): In function `init_window':
: undefined reference to `XChangeProperty'
torsmo.o(.text+0x4984): In function `main':
: undefined reference to `XCreateGC'
torsmo.o(.text+0x4b6d): In function `main':
: undefined reference to `XMoveWindow'
collect2: ld returned 1 exit status
make: *** [torsmo] Error 1
看起来和XORG的某个头文件没有找到有关。
:help |
|