compiling error

Anas Alzouhbi anas.lbn at
Tue Apr 14 13:50:17 CEST 2009

I try to compile this program found on:
but I obtained this error by compiling it:
progtry.c: In function ‘pEvenThrd’:
progtry.c:188: warning: implicit declaration of function ‘usleep’
progtry.c:190: warning: no return statement in function returning non-void
progtry.c: In function ‘main’:
progtry.c:248: warning: implicit declaration of function ‘putenv’
arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -std=gnu99
-Wall -pedantic -std=c99 -fexpensive-optimizations
-fomit-frame-pointer -frename-registers -Os
-L/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib -o
progtry progtry.o -lm
progtry.o: In function `set_rotation':
progtry.c:(.text+0x114): undefined reference to `XDisplayName'
progtry.c:(.text+0x154): undefined reference to `XRRRotations'
progtry.c:(.text+0x160): undefined reference to `XRRGetScreenInfo'
progtry.c:(.text+0x16c): undefined reference to `XRRConfigCurrentConfiguration'
progtry.c:(.text+0x188): undefined reference to `XRRSetScreenConfig'
progtry.c:(.text+0x198): undefined reference to `XOpenDisplay'
progtry.o: In function `main':
progtry.c:(.text+0x20c): undefined reference to `pthread_create'
collect2: ld returned 1 exit status
make: *** [all] Erreur 1

how can I solve this problem of compiling??

More information about the community mailing list