<p>In your list of libs, "-l" is obviously doubled. Try to give the names to the linker without the prefix.</p>
<div class="gmail_quote">On Sep 24, 2011 7:58 AM, "mounir younes" <<a href="mailto:mounir.younes@gmail.com">mounir.younes@gmail.com</a>> wrote:<br type="attribution">> Hello, I am new to ffmpeg and I am getting compiling errors while compiling<br>
> c++ code with ffmpeg libraries. It seems that a lot of people are getting<br>> this with the new ffmpeg but I couldn't find a solution that I could<br>> understand.<br>> <br>> I found a link that says that this<br>
> <br>> CXXFLAGS=-D__STDC_CONSTANT_MACROS ./configure<br>> (<a href="http://code.google.com/p/ffmpegsource/issues/detail?id=11">http://code.google.com/p/ffmpegsource/issues/detail?id=11</a>)<br>> <br>> <br>
> solves it but unfortunately I tried it but nothing happened and I don't know<br>> what to do ! I am adding the file headers which are being automatically<br>> detected by netbeans so the libraries are already found. I tried adding<br>
> these -lavdevice -lavformat -lavcodec -lavutil -lswscale -lbz2  to the<br>> linker as well<br>> <br>> (<br>> <a href="http://libav-users.943685.n4.nabble.com/QT-and-FFmpeg-undefined-reference-to-av-free-and-more-td946811.html">http://libav-users.943685.n4.nabble.com/QT-and-FFmpeg-undefined-reference-to-av-free-and-more-td946811.html</a><br>
> )<br>> <br>> when adding them netbeans knew them and gave them proper library icons (thus<br>> it recognized that these libraries are present otherwise it would've<br>> replaced them with a white icon with question mark). But, when compiling I<br>
> get this<br>> <br>> /usr/bin/ld: cannot find -l-lavdevice<br>> /usr/bin/ld: cannot find -l-lavformat<br>> /usr/bin/ld: cannot find -l-lavcodec<br>> /usr/bin/ld: cannot find -l-lavutil<br>> /usr/bin/ld: cannot find -l-lswscale<br>
> /usr/bin/ld: cannot find -l-lbz2<br>> <br>> And this is really killing me. I have been trying to solve this for days.<br>> <br>> Thank you in advance.<br></div>