1

Error on linking ffmpeg example code in linux

view story
linux-howto

http://stackoverflow.com – I'm trying to work on the ffmpeg example source file. Now, I'm trying to compile and link from the command line but I can't seem to get it to link. I compiled the code and generated obj file. My problem is on linking , I just tried this: gcc -Wall -o example -L/home/jayanthi/example -lavcodec -lavutil example.o At this point, I get error of 'undefined reference error' example.o: In function `audio_encode_example': example.c:(.text+0x25): undefined reference to `avcodec_find_encoder' example.c:(.text+0x6a): undefined reference to `avcodec_alloc_context3' example.c:(.text+0xad): undefin (HowTos)