[mythtv] unable to compile with gcc 3.4.0
Eric Hattemer
eric at hattenator.dyndns.org
Tue Jun 1 12:03:23 EDT 2004
>distcc -c -pipe -Wall -W -O3 -march=pentium3 -mfpmath=sse,387
>-fomit-frame-pointer `freetype-config --cflags` -D_REENTRANT -fPIC
>-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DMMX -DUSING_XV
>-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/share/qt3//mkspecs/default -I.
>-I/usr/include -I/usr/local/include -I../libmyth -I.. -Idvbdev
>-I../libavcodec -I/usr/share/qt3//include -o RTjpegN.o RTjpegN.cpp
>RTjpegN.cpp: In member function `int RTjpeg::b2s(int16_t*, int8_t*, uint8_t)':
>RTjpegN.cpp:136: error: ISO C++ forbids cast to non-reference type used as
>lvalue
>RTjpegN.cpp:145: error: ISO C++ forbids cast to non-reference type used as
>lvalue
>RTjpegN.cpp:174: error: ISO C++ forbids cast to non-reference type used as
>lvalue
>RTjpegN.cpp:186: error: ISO C++ forbids cast to non-reference type used as
>lvalue
>RTjpegN.cpp:203: error: ISO C++ forbids cast to non-reference type used as
>lvalue
>RTjpegN.cpp:224: error: ISO C++ forbids cast to non-reference type used as
>lvalue
>RTjpegN.cpp:234: error: ISO C++ forbids cast to non-reference type used as
>lvalue
>RTjpegN.cpp:241: error: ISO C++ forbids cast to non-reference type used as
>lvalue
>
>
use -fpermissive, and these errors will change to warnings. You can set
CXXFLAGS, or edit settings.pro and change the QMAKE_CXXFLAGS_RELEASE.
You will have to edit fifowriter.* ala a previous post of mine. If you
don't understand that post (fifowriter has changed recently), I can make
a patch (but I don't know how).
-Eric Hattemer
More information about the mythtv-dev
mailing list