[MPlayer-users] Compile error "#STR " does not fit into IdStrMap.str\n"

max muster steyding at yahoo.de
Mon Jul 15 20:04:50 EEST 2024


ibavformat/img2.c:101:62: note: in definition of macro 'LENGTH_CHECK'
  101 |     static_assert(sizeof(#STR) <= sizeof(ff_img_tags->str), #STR " does not fit into IdStrMap.str\n");
      |                                                              ^~~
libavformat/img2.c:102:1: note: in expansion of macro 'IMG_TAGS'
  102 | IMG_TAGS(LENGTH_CHECK)
      | ^~~~~~~~
libavformat/img2.c:101:19: error: expected declaration specifiers or '...' before 'sizeof'
  101 |     static_assert(sizeof(#STR) <= sizeof(ff_img_tags->str), #STR " does not fit into IdStrMap.str\n");
      |                   ^~~~~~
libavformat/img2.c:98:5: note: in expansion of macro 'LENGTH_CHECK'
   98 |     TAG(NONE,                     )
      |     ^~~
libavformat/img2.c:102:1: note: in expansion of macro 'IMG_TAGS'
  102 | IMG_TAGS(LENGTH_CHECK)
      | ^~~~~~~~
libavformat/img2.c:102:22: error: expected declaration specifiers or '...' before string constant
  102 | IMG_TAGS(LENGTH_CHECK)
      |                      ^
libavformat/img2.c:101:62: note: in definition of macro 'LENGTH_CHECK'
  101 |     static_assert(sizeof(#STR) <= sizeof(ff_img_tags->str), #STR " does not fit into IdStrMap.str\n");
      |                                                              ^~~
libavformat/img2.c:102:1: note: in expansion of macro 'IMG_TAGS'
  102 | IMG_TAGS(LENGTH_CHECK)
      | ^~~~~~~~
make[1]: *** [ffbuild/common.mak:81: libavformat/img2.o] Error 1
make[1]: Leaving directory '/trunk/mplayer-unpatched/ffmpeg'
make: *** [Makefile:743: ffmpeg/libavformat/libavformat.a] Error 2

Regards,Mark


More information about the MPlayer-users mailing list