User forums > Using Code::Blocks
Linking ffmpeg
computerguy89:
Okay I tried the -L with the full path and it still didn't compile so I gave up tying with Fedora 7.
And tried it on Fedora core 6 i386 to see if it was related to 64bit and it still didn't compile saying "undefined reference to `av_register_all'".
So I went and found my old hard drive and install Mandriva One 2007 32bit and it worked fine.
Do you think it could be related to Fedora?
Thanks for all your help I really appreciate it.
wwolf:
I am not sure if it is related to Fedora itself. It is certainly related to your Fedora installation. I was just thinking, is it possible that not all stuff ffmpeg is depending on is installed on your Fedora? You may also try a Google search with your error message. Normally problems like this are effecting more than one person, and the solution might be out there already.
computerguy89:
Okay I did some Googling and found this, could it be why I can't get ffmpeg to link in C++?
After I read that I tried compiling it with gcc on Fedora and it worked fine. :?
I also found this library called FOBS which is a C++ wrapper for ffmpeg, so hopefully it will work.:)
Well, I guess it's related to ffmpeg not supporting C++, not Code::Blocks.
Thanks again for your help.
wwolf:
Yeah, I think i understand the issue now. Perhaps one solution is to wrap the ffmpeg headers into extern "C" blocks when you include them into C++ programs:
extern "C" {
#include <some_ffmpeg_header.h>
}
computerguy89:
Yup it works fine now, I guess I just needed the extern "C" thing.
Thanks!
Navigation
[0] Message Index
[*] Previous page
Go to full version