[mythtv] [PATCH] fifowriter gcc 3.4
Eric Hattemer
eric at hattenator.dyndns.org
Fri Jun 4 20:59:03 EDT 2004
Matt Zimmerman wrote:
>Yes, but I want to know _why_ it no longer accepts it. Does ISO forbid it?
>Is a typedef really the only way to achieve the desired effect? Allocating
>an array of pointers to structs is awfully common.
>
>
>
g++ -c -pipe -Wall -W -O3 -march=pentiumpro -fomit-frame-pointer
`freetype-config --cflags` -D_REENTRANT -fPIC -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\" -DMMX -DUSING_IVTV
-DUSING_OSS -DUSING_XV -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED
-I/usr/lib/qt3/mkspecs/default -I. -I/usr/local/include -I../libmyth
-I.. -Idvbdev -I../libavcodec -I/usr/lib/qt3//include -o fifowriter.o
fifowriter.cpp
fifowriter.cpp: In constructor `FIFOWriter::FIFOWriter(int, bool)':
fifowriter.cpp:26: error: array bound forbidden after parenthesized type-id
fifowriter.cpp:26: note: try removing the parentheses around the type-id
fifowriter.cpp:27: error: array bound forbidden after parenthesized type-id
fifowriter.cpp:27: note: try removing the parentheses around the type-id
fifowriter.cpp:28: error: array bound forbidden after parenthesized type-id
fifowriter.cpp:28: note: try removing the parentheses around the type-id
gmake[2]: *** [fifowriter.o] Error 1
gmake[2]: Leaving directory
`/wd/mdk/home/eric/mythtv-stock/mythtv/libs/libmythtv'
gmake[1]: *** [sub-libmythtv] Error 2
gmake[1]: Leaving directory `/wd/mdk/home/eric/mythtv-stock/mythtv/libs'
gmake: *** [sub-libs] Error 2
It doesn't say ISO C++. I'm not sure if the precedence works correctly
if you remove the parentheses. I think I tested that a while ago,
though, and decided the typedef would be best. If you have a better
idea that compiles in 3.4, go for it.
-Eric Hattemer
More information about the mythtv-dev
mailing list