To: | |
---|---|
Subject: | [pwc] Compilation problem with pwc_ioctl.h |
From: | "Lars Mogensen" <> |
Date: | Fri, 31 Aug 2007 12:09:31 +0200 |
Hi, I am having a problem with compiling the latest version of PWC om my computer. The version of PWC is 10.0.12 on a Debian box. I use gcc 4.1.3 ind i an including the headerfile in a C++ file. I get an error like this: ../include/pwc-ioctl.h:321: error: ISO C++ forbids zero-size array 'rawframe' make[1]: *** [ufunctioncamif.o] Fejl 1 make: *** [ucamif] Fejl 2 It is originating from the line: __u8 rawframe[0]; /* frame_size = H/4*vbandlength */ Changing the definition of the array to: __u8 rawframe[1]; /* frame_size = H/4*vbandlength */ makes the error go away, but it is not very elegant to modify a file like that. What is the right way to solve this problem. Regards, Lars _______________________________________________ pwc mailing list http://lists.saillard.org/mailman/listinfo/pwc |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | [pwc] led issue at the startup on QuickCam Zoom, Guillaume Millet |
---|---|
Next by Date: | Re: [pwc] Compilation problem with pwc_ioctl.h, Lars Mogensen |
Previous by Thread: | [pwc] led issue at the startup on QuickCam Zoom, Guillaume Millet |
Next by Thread: | Re: [pwc] Compilation problem with pwc_ioctl.h, Victor Seva |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU