I'm trying to put in libavcodec but the compiler (gcc) is always saying "undefined reference to `avcodec_init'" or any other avcodec function :/
Everything compiles properly but it just comes to a stop when I call a libavcodec function.
Everything is set up properly I hope..
c code:
#include <stdio.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
int main(){
// example code .. but i hope you know what i mean
avcodec_init();
av_register_all();
}
If anyone can help me that would be great
My makefile has the -lavcodec and -lavformat in it.
I searched Google for two hours...