gcc: undefined reference to
However, avpicture_get_size is defined. No, as the header (<libavcodec/avcodec.h>) just declares it. The definition is in the library itself. So you might like to add the linker option to link libavcodec when invoking gcc: -lavcodec Please also note that libraries need to be specified on the command line after the files needing them: gcc -I$HOME/ffmpeg/include … Read more