Hello, I'm trying to compile some simple code using the FFMPEG library:
extern "C" { // also tried without this
#include <libavcodec/avcodec.h>
}
int main()
{
AVCodec* codec;
avcodec_register_all();
return 0;
}
The header file contains the AVCodec struct and
void avcodec_register_all(void); but I still get
undefined reference to `avcodec_register_all'. It doesn't complain about the AVCodec pointer.
My project build options:
Linker Settings->Link Libraries: C:\Libs\ffmpeg\lib\avcodec.lib
Search Directories->Compiler: C:\Libs\ffmpeg\include
Search Directories->Linker: C:\Libs\ffmpeg\lib
Any ideas why I get this error? I've searched the internet for several hours but without luck.