Hi,<br><br>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.<br><br>I get an error like this:
<br>../include/pwc-ioctl.h:321: error: ISO C++ forbids zero-size array 'rawframe'<br>make[1]: *** [ufunctioncamif.o] Fejl 1<br>make: *** [ucamif] Fejl 2<br><br>It is originating from the line:<br>&nbsp;&nbsp; __u8&nbsp;&nbsp; rawframe[0];&nbsp;&nbsp;&nbsp; /* frame_size = H/4*vbandlength */
<br><br>Changing the definition of the array to:<br>&nbsp;&nbsp; __u8&nbsp;&nbsp; rawframe[1];&nbsp;&nbsp;&nbsp; /* frame_size = H/4*vbandlength */<br>makes the error go away, but it is not very elegant to modify a file like that.<br><br>What is the right way to solve this problem.
<br><br>Regards,<br><br>Lars<br>