From: Yerko A. <YAl...@am...> - 2006-04-20 23:34:10
|
Hello gumstix users: I'm new to the gumstix and I'm trying to write a simple tinyX = application. I'm able to compile/run tinyX and some applications such as xeyes and = xclock using 'make menuconfig' but I'm not able to build any tinyX application = by itself. Here is what I get when I try to compile and link my sample code. I tried compiling xset in /xc-011010/programs/xset but I get similar = error: undefined reference Thanks for your help arm-linux-gcc -o code.o -fno-strength-reduce -fno-strict-aliasing = -Dlinux -DFUNCPROTO=3D15 -DNARROWPROTO=20 -I /home/gumstix-buildroot/build_arm_nofpu/xc-011010/exports/include/ = code.c -c arm-linux-gcc -o code -fno-strength-reduce -fno-strict-aliasing=20 -L /home/gumstix-buildroot/build_arm_nofpu/xc-011010/exports/lib code.o = -lX11 /home/sample/code.o: In function `main': code.c:(.text+0x54): undefined reference to `XOpenDisplay' code.c:(.text+0x74): undefined reference to `XDisplayName' code.c:(.text+0x1e0): undefined reference to `XCreateSimpleWindow' code.c:(.text+0x208): undefined reference to `XCreateBitmapFromData' code.c:(.text+0x284): undefined reference to `XSetStandardProperties' code.c:(.text+0x29c): undefined reference to `XSelectInput' code.c:(.text+0x2cc): undefined reference to `XMapWindow' code.c:(.text+0x2e0): undefined reference to `XNextEvent' code.c:(.text+0x35c): undefined reference to `XCheckTypedEvent' /home/sample/code.o: In function `get_GC': code.c:(.text+0x4a0): undefined reference to `XCreateGC' /home/sample/code.o: In function `load_font': code.c:(.text+0x4e8): undefined reference to `XLoadQueryFont' collect2: ld returned 1 exit status make: *** [code] Error 1 colinux:/home/sample# |