[cpia] Problems compiling CPIA 1.0/USB

sbertin@mindspring.com sbertin@mindspring.com
Sun, 2 Jul 2000 17:53:33 -0400 (EDT)


On  2 Jul, Linux Webcam wrote:
> I've upgraded to the 2.3.99pre9 Kernel, and I can't seem to compile the USB
> version of the CPIA 1.0 drivers.

> [root@linux module]# gcc -D_CPIA_DEBUG_ -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer  -pipe -fno-strength-reduce -m486 -malign-loops=2
> -malign-jumps=2 -malign-functions=2 -DCPU=686 -fomit-frame-pointer
> -fno-strength-reduce -I. -I/usr/src/linux/include -D__KERNEL__ -DMODULE
> -DCONFIG_VIDEO_CPIA_MODULE -DCONFIG_VIDEO_CPIA_USB_MODULE    cpia_usb.c   -o
> cpia_usb
> /usr/lib/crt1.o: In function `_start':
> /usr/lib/crt1.o(.text+0x18): undefined reference to `main'
> /tmp/cctVbLFT.o: In function `cpia_usb_complete':
> /tmp/cctVbLFT.o(.text+0x9b): undefined reference to `printk'

You're missing a -c in your compile line.

Scott J. Bertin
sbertin@mindspring.com