<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/26 Kyrylo V Polezhaiev <span dir="ltr"><<a href="mailto:polezhaiev@ukr.net" target="_blank">polezhaiev@ukr.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<span><span style="font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-size:14px;line-height:18px">-lstdc++?</span></span></div></blockquote><div><br></div><div>By default XCode uses libc++ instead of libstdc++. You can change this settings in Build Settings->C++ Standard Library<br>
<br></div><div>Cheers,<br>Andoni<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><span><div class="im"><br><br><div style="font-size:0.9em;font-style:italic">
--- Original message ---<br> From: "Elio Francesconi" <<a href="mailto:elio.francesconi@gmail.com" target="_blank">elio.francesconi@gmail.com</a>><br> Date: 26 October 2013, 15:37:49<br></div> <br></div>
<blockquote style="border-left:1px solid rgb(204,204,204);margin:0px 0px 0px 0.8ex;padding-left:1ex"><span>
<span> </span>
<span><div class="im">Hi all,<div>I need to use GStreamer with a project written in Object-C++, but when I link the project I receive this error:</div><div><br></div><div style="margin:0px 0px 0px 12px;font-size:11px;font-family:Menlo">
<br></div></div><div style="margin:0px 0px 0px 12px;font-size:11px;font-family:Menlo"><div class="im"><div style="margin:0px 0px 0px 12px">Ld /Users/elio/Library/Developer/Xcode/DerivedData/TestGstreamer1.2-eppjggzeluonidfwgtsjsdudxxkb/Build/Products/Debug-iphonesimulator/TestGstreamer1.2.app/TestGstreamer1.2 normal i386</div>
<div style="margin:0px 0px 0px 12px"> cd /Users/elio/Projects/tutorial/TestGstreamer1.2</div><div style="margin:0px 0px 0px 12px"> setenv IPHONEOS_DEPLOYMENT_TARGET 6.0</div></div><div style="margin:0px 0px 0px 12px">
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/b
in:/usr/sbin:/sbin"</div><div style="margin:0px 0px 0px 12px"> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Users/elio/Library/Developer/Xcode/DerivedData/TestGstreamer1.2-eppjggzeluonidfwgtsjsdudxxkb/Build/Products/Debug-iphonesimulator -F/Users/elio/Library/Developer/Xcode/DerivedData/TestGstreamer1.2-eppjggzeluonidfwgtsjsdudxxkb/Build/Products/Debug-iphonesimulator -F/Users/elio/Library/Developer/GStreamer/iPhone.sdk -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -filelist /Users/elio/Library/Developer/Xcode/DerivedData/TestGstreamer1.2-eppjggzeluonidfwgtsjsdudxxkb/Build/Intermediates/TestGstreamer1.2.build/Debug-iphonesimulator/TestGstreamer1.2.build/Objects-normal/i386/TestGstreamer1.2.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -lresolv -lstdc++ -frame
work CoreFoundation -framework Foundation -framework AVFoundation -framework CoreMedia -framework CoreVideo -framework CoreAudio -framework AudioToolbox -framework OpenGLES -framework AssetsLibrary -framework QuartzCore -framework AssetsLibrary -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -stdlib=libc++ -mios-simulator-version-min=6.0 -framework CoreGraphics -framework GStreamer -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/elio/Library/Developer/Xcode/DerivedData/TestGstreamer1.2-eppjggzeluonidfwgtsjsdudxxkb/Build/Intermediates/TestGstreamer1.2.build/Debug-iphonesimulator/TestGstreamer1.2.build/Objects-normal/i386/TestGstreamer1.2_dependency_info.dat -o /Users/elio/Library/Developer/Xcode/DerivedData/TestGstreamer1.2-eppjggzeluonidfwgtsjsdudxxkb/Build/Products/Debug-iphonesimulator/TestGstreamer1.2.app/TestGstreamer1.2</div>
<div class="im"><div style="margin:0px 0px 0px 12px"><br></div><div style="margin:0px 0px 0px 12px"><div>ld: warning: could not create compact unwind for .LFB3: non-standard register 5 being saved in prolog</div><div style="margin:0px 0px 0px 12px">
ld: '___cxx_global_var_init' in /Users/elio/Library/Developer/GStreamer/iPhone.sdk/GStreamer.framework/GStreamer(libgsttaglib_a_i386_-libgsttaglib_la-gstapev2mux.o) contains undefined reference for architecture i386</div>
<div style="margin:0px 0px 0px 12px">clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div><br></div><div>This issue is simple to reproduce, it is enough rename main.m into <a href="http://main.mm" target="_blank">main.mm</a> a Gtreamer Project.</div>
<div><br></div><div>Can someone give me some hints to solve it?</div><div>Thanks</div><div>Elio</div></div></div></div></span>
</span>
<pre>_______________________________________________
gstreamer-devel mailing list
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre></blockquote></span>
<img alt="">
</div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Andoni Morales Alastruey<br><br>LongoMatch:The Digital Coach<br><a href="http://www.longomatch.ylatuya.es">http://www.longomatch.ylatuya.es</a>
</div></div>