expected '(' to follow 'inline'

hi,
while compiling c++ code its coming errors like
error C2054: expected '(' to follow 'inline'
error C2143: syntax error : missing ')' before '*'
error C2091: function returns function
error C2085: 'RENAME' : not in formal parameter list
error C2143: syntax error : missing ';' before '*'
error C2059: syntax error : ')'
You have syntax errors. If you post the code someone can help.
There should be info about file and line, where each error occurs.

Start from the first error. It is quite likely that the later errors are due to the compiler being "derailed" by the first error.
ok..i started rectifying the errors but its coming the same...

My logic is like below

AVCodec ff_nuv_decoder = {
.name = "nuv",
.long_name = NULL_IF_CONFIG_SMALL("NuppelVideo/RTJPEG"),
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_NUV,
.priv_data_size = sizeof(NuvContext),
.init = decode_init,
.close = decode_end,
.decode = decode_frame,
.capabilities = CODEC_CAP_DR1,
};

error C2059: syntax error : '.'
That last comma could be an error.
hi,
I checked as u said.But its coming same as previous error
The comma should not (IIRC) be an error, but attempting to use designators in an aggregate initializer is not valid C++. (It is valid C.)
Topic archived. No new replies allowed.