[LLVMbugs] link-error: different visibilities

gauss gausszhch at gmail.com
Wed Sep 2 04:42:17 PDT 2009


When I use llvm-2.5 to compile gnash which is a GNU flash movie player, some
errors appeared as follow:

*llvm-ld: error: Cannot link in module
'../libcore/.libs/libgnashcore.a(movie_root.o)': Linking globals named
'_ZNKSt6vectorIN5gnash8geometry7Range2dIfEESaIS3_EE4sizeEv': symbols have
different visibilities!*

I demangle the name
"_ZNKSt6vectorIN5gnash8geometry7Range2dIfEESaIS3_EE4sizeEv" with tool
c++filt, and its corresponding source code is:
*std::vector<gnash::geometry::Range2d<float>,
std::allocator<gnash::geometry::Range2d<float> > >::size() const.*  It is a
template method "Vector<>::size()" inserted by llvm-g++ at compile time.

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?

Any one will help me?

Thanks!

Gauss, 09-02
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20090902/abd5bada/attachment.html>


More information about the llvm-bugs mailing list