Skip to content

Undefined reference to memcpy() in lib_dec.c in the ivas-float-update branch

When compiling the ivas-float-update branch, the compiler issues the follwoing error:

lib_dec/lib_dec.c: In function ‘IVAS_DEC_PrintConfigWithBitstream’:
lib_dec/lib_dec.c:2674:5: error: implicit declaration of function ‘memcpy’ [-Werror=implicit-function-declaration]
 2674 |     memcpy( st_ivas, hIvasDec->st_ivas, sizeof( Decoder_Struct ) );
      |     ^~~~~~

This is due to missing #include <string.h>