View Single Post
Old 12-11-03, 04:44 AM   #2
rednuht
GeForce FX5600 (1.0-5336)
 
rednuht's Avatar
 
Join Date: Sep 2003
Location: uk
Posts: 164
Default tried but stupid

I tried to compile the source with classic
gcc -O source.c -o executable

but got

/tmp/cc28iACy.o: In function `GetPortId':
/tmp/cc28iACy.o(.text+0x36): undefined reference to `XvQueryAdaptors'
/tmp/cc28iACy.o(.text+0x9f): undefined reference to `XvListImageFormats'
/tmp/cc28iACy.o(.text+0x10e): undefined reference to `XvGrabPort'
/tmp/cc28iACy.o(.text+0x152): undefined reference to `XFree'
/tmp/cc28iACy.o(.text+0x170): undefined reference to `XvFreeAdaptorInfo'
/tmp/cc28iACy.o: In function `main':
/tmp/cc28iACy.o(.text+0x18f): undefined reference to `XOpenDisplay'
/tmp/cc28iACy.o(.text+0x1ee): undefined reference to `XvShmCreateImage'
/tmp/cc28iACy.o(.text+0x23e): undefined reference to `XShmAttach'
/tmp/cc28iACy.o(.text+0x261): undefined reference to `XFree'
/tmp/cc28iACy.o(.text+0x26d): undefined reference to `XCloseDisplay'
/tmp/cc28iACy.o(.text+0x2af): undefined reference to `XCreateSimpleWindow'
/tmp/cc28iACy.o(.text+0x2c1): undefined reference to `XSetWindowBackgroundPixmap'
/tmp/cc28iACy.o(.text+0x2ce): undefined reference to `XMapWindow'
/tmp/cc28iACy.o(.text+0x2df): undefined reference to `XCreateGC'
/tmp/cc28iACy.o(.text+0x358): undefined reference to `XvShmPutImage'
/tmp/cc28iACy.o(.text+0x366): undefined reference to `XSync'
collect2: ld returned 1 exit status


I am guessing this because I need to link in X libraries some how in the gcc command, but config and make files usuialy do this so I am at a loss.
rednuht is offline   Reply With Quote