[pwc] Compilation problem with pwc_ioctl.h
Victor Seva
linuxmaniac at torreviejawireless.org
Fri Aug 31 12:33:29 CEST 2007
Lars Mogensen escribió:
> 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
If you are using a debian kernel >= 2.6.18, pwc is already included. If you are
using >= 2.6.9 then you have a pwc-source package with small custom changes.
--
-----------------------------------------------------------------
| ,''`. Victor Seva |
| : :' : linuxmaniac at torreviejawireless.org |
| `. `' PGP Key ID: 0xDD12F253 |
| `- Debian user, admin and contributor |
-----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.saillard.org/pipermail/pwc/attachments/20070831/7411b11c/attachment.pgp
More information about the pwc
mailing list