<div><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Simsun; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="BORDER-COLLAPSE: collapse; FONT-FAMILY: verdana, geneva, helvetica, arial, sans-serif; FONT-SIZE: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px" class="Apple-style-span">When I use llvm-2.5 to compile gnash which is a GNU flash movie player, some errors appeared as follow:<span class="Apple-converted-space"> </span><br>
<br><i>llvm-ld: error: Cannot link in module '../libcore/.libs/libgnashcore.a(movie_root.o)': Linking globals named '_ZNKSt6vectorIN5gnash8geometry7Range2dIfEESaIS3_EE4sizeEv': symbols have different visibilities!</i><br>
<br>I demangle the name "_ZNKSt6vectorIN5gnash8geometry7Range2dIfEESaIS3_EE4sizeEv" with tool c++filt, and its corresponding source code is:<span class="Apple-converted-space"> </span><br><i>std::vector<gnash::geometry::Range2d<float>, std::allocator<gnash::geometry::Range2d<float> > >::size() const.</i><span class="Apple-converted-space">  </span>It is a template method "Vector<>::size()" inserted by llvm-g++ at compile time. </span></span></div>

<div><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Simsun; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="BORDER-COLLAPSE: collapse; FONT-FAMILY: verdana, geneva, helvetica, arial, sans-serif; FONT-SIZE: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px" class="Apple-style-span"></span></span> </div>

<div><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Simsun; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="BORDER-COLLAPSE: collapse; FONT-FAMILY: verdana, geneva, helvetica, arial, sans-serif; FONT-SIZE: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px" class="Apple-style-span">LLVM-g++ compiled all the cpp file correctly, but llvm-ld failed to link them because of the different visibilities. Is there some wrong with LLVM-g++? How to deal with it?<span class="Apple-converted-space"> </span><br>
<br>Any one will help me?<span class="Apple-converted-space"> </span><br><br>Thanks!<span class="Apple-converted-space"> </span><br><br>Gauss, 09-02</span></span></div>