Unresolved external symbol: av_opt_set

For the developers that use FFmpeg in their software.
Post Reply
TheSHEEEP
Posts: 34
Joined: Fri Sep 16, 2011 9:12 am
Location: Berlin

Unresolved external symbol: av_opt_set

Post by TheSHEEEP » Wed Jul 18, 2012 2:49 pm

Hey there,

I am trying to use av_opt_set() in my code, but as soon as I try to use anything from libavutil/opt.h, I get an compiler error saying:

Code: Select all

error LNK2019: unresolved external symbol "int __cdecl av_opt_set_int(void *,char const *,__int64,int)" ([email protected]@[email protected]) referenced in function "struct AVStream * __cdecl add_video_stream(class Cffmpeg_dll *,struct AVFormatContext *,enum CodecID)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
Normally, I'd say I am missing a library, but I include:
avformat.lib;avdevice.lib;avcodec.lib;swscale.lib;avutil.lib;
So libavutil is in there. Everything else also works just fine.

Any ideas?

Oh, btw, I'm using Visual Studio 2010 Professional. I also use the latest dev & shared build (to get both *.lib and *.dll) from this site (git-7543fd8).

TheSHEEEP
Posts: 34
Joined: Fri Sep 16, 2011 9:12 am
Location: Berlin

Re: Unresolved external symbol: av_opt_set

Post by TheSHEEEP » Thu Jul 19, 2012 9:04 am

Sometimes, I'm surprisingly silly.

I forget the extern C around the #include "opt.h". :lol:

Post Reply
'