Oct 15, 2013 at 10:07am UTC
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 : ')'
Oct 15, 2013 at 10:10am UTC
You have syntax errors. If you post the code someone can help.
Oct 15, 2013 at 10:20am UTC
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.
Nov 9, 2013 at 5:30am UTC
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 : '.'
Nov 9, 2013 at 10:22am UTC
That last comma could be an error.
Nov 9, 2013 at 10:31am UTC
hi,
I checked as u said.But its coming same as previous error
Nov 9, 2013 at 4:32pm UTC
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.)