<div dir="ltr"><div><span style="font-family:arial,sans-serif;font-size:13px">> There's your explanation (from `man gcc`):</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">>       -all_load</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">>           Loads all members of static archive libraries.  See man ld(1) for more information.</span><br></div><div><br></div>Good eyes and a very observant mind, thank you very much ;-)<div>
<br></div><div>I'll check the reason behind and if we can disable "-all_load" since this feels better than cleaning out duplicate objects from the ffmpeg libs. Thought I'm not sure how this will work on other platforms like win, osx, linux and android. If there are no obvious reasons to keep the current solution with "#include source" it would be nice if someone could implement an alternative solution for the long term.</div>
<div>--</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/2/13 "René J.V. Bertin" <span dir="ltr"><<a href="mailto:rjvbertin@gmail.com" target="_blank">rjvbertin@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On Feb 13, 2013, at 18:14, Lars Hammarstrand wrote:<br>
<br>
> In general doing "#include ../common/source.c" with global variables is probably a bad idea if you want to avoid duplicate symbols in "public" libraries.<br>
<br>
</div>Agreed, hence my question if there's a reason for the duplicate definition. I'm guessing it just never tripped an error, though.<br>
<br>
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 <SNIP> -filelist /Users/lars/Library/Developer/Xcode/DerivedData/XBMC-cowrsziekmorhqejlbarbpswsqbh/Build/Intermediates/XBMC.build/Debug/XBMC.build/Objects-normal/i386/XBMC.LinkFileList -mmacosx-version-min=10.6 -headerpad_max_install_names -all_load<br>

                                                                                            ^^^^^^^^^<br>
<br>
There's your explanation (from `man gcc`):<br>
       -all_load<br>
           Loads all members of static archive libraries.  See man ld(1) for more information.<br>
<br>
Now the question is of course, do *you* need that option, linking what appears to be an executable?<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div></div></blockquote></div><br></div>