This is a code problem detected my a stronger (type safe) compliant compiler like gcc
3.2 (which i
use). My solution was to perform a C-style cast on each of the possible variables in
the ?: statement
and it compiled just fine (and seems to run). Put "(avm::IRtConfig*)( x )" in your
code where x is
each of the two possible result variables.
Ben Scherrey
9/28/2002 2:30:51 PM, Kenton Groombridge <[EMAIL PROTECTED]> wrote:
>I think a lot of us are suffering from this. I don't think it is
>related to anything that users are doing wrong. Seems to be a code
>problem (maybe gcc 3.2 doesn't like it 'cause it is what I use).
>
>Ken
>
>[EMAIL PROTECTED] wrote:
>
>>I receive an error while compiling avifile, I've checked the FAQ and it
>>doesn't seem to be in there, so I'm looking for some help here. This is the
>>message (there may be some mistakes, I've had to retype it:
>>
>>renderer.cpp: In method 'avm::IRtConfig *avm::YUVRenderer::IRtConfig() const';
>>renderer.cpp:2172: conditional expression between distinct pointer
>>types 'avm::XvRtConfig *' and 'avm::SDLGRtConfig *' lacks a cast
>>renderer.cpp:2172: cannot convert 'void *' to 'avm:IRtConfig *' in
>>return
>>
>>This is on a newly-installed Red Hat 7.3 system, with avifile 0.7-0.7.16. The
>>only odd thing I've had to do to get this working this far was to move the
>>xvid.h file in /usr/local/include, but I've also had this error while
>>disabling xvid. Any ideas? Thanks.
>
_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile