[cfe-dev] Another Linker error with clang++

Douglas Gregor dgregor at apple.com
Wed Sep 14 07:55:29 PDT 2011


On Sep 14, 2011, at 2:29 AM, Devchandra L Meetei wrote:

>  
> 
> history |grep export gave this and error message are below
> export CC=/home/deleisha/Downloads/clang+llvm-2.9-x86_64-linux.tar/bin/clang
> export CXX=/home/deleisha/Downloads/clang+llvm-2.9-x86_64-linux.tar/bin/clang++
> 
> 
> Er, what are the error messages?
> 
> /home/deleisha/CodeSpace/pegasus/pkg/obj/Pegasus/General/MofWriter.o: In function `Pegasus::MofWriter::appendValueElement(Pegasus::Buffer&, Pegasus::CIMValue const&)':
> /home/deleisha/CodeSpace/pegasus/src/Pegasus/General/MofWriter.cpp:387: undefined reference to `Pegasus::Array<Pegasus::CIMObject>::Array()'
> /home/deleisha/CodeSpace/pegasus/src/Pegasus/General/MofWriter.cpp:389: undefined reference to `Pegasus::Array<Pegasus::CIMObject>::getData() const'
> /home/deleisha/CodeSpace/pegasus/src/Pegasus/General/MofWriter.cpp:389: undefined reference to `Pegasus::Array<Pegasus::CIMObject>::size() const'
> /home/deleisha/CodeSpace/pegasus/src/Pegasus/General/MofWriter.cpp:391: undefined reference to `Pegasus::Array<Pegasus::CIMObject>::~Array()'
> /home/deleisha/CodeSpace/pegasus/src/Pegasus/General/MofWriter.cpp:391: undefined reference to `Pegasus::Array<Pegasus::CIMObject>::~Array()'
> /home/deleisha/CodeSpace/pegasus/src/Pegasus/General/MofWriter.cpp:394: undefined reference to `Pegasus::Array<Pegasus::CIMInstance>::Array()'
> /home/deleisha/CodeSpace/pegasus/src/Pegasus/General/MofWriter.cpp:396: undefined reference to `Pegasus::Array<Pegasus::CIMInstance>::getData() const'
> /home/deleisha/CodeSpace/pegasus/src/Pegasus/General/MofWriter.cpp:396: undefined reference to `Pegasus::Array<Pegasus::CIMInstance>::size() const'
> /home/deleisha/CodeSpace/pegasus/src/Pegasus/General/MofWriter.cpp:398: undefined reference to `Pegasus::Array<Pegasus::CIMInstance>::~Array()'
> /home/deleisha/CodeSpace/pegasus/src/Pegasus/General/MofWriter.cpp:398: undefined reference to `Pegasus::Array<Pegasus::CIMInstance>::~Array()'
> /usr/bin/ld: /home/deleisha/CodeSpace/pegasus/pkg/lib/libpeggeneral.so.1: hidden symbol `_ZN7Pegasus5ArrayINS_9CIMObjectEEixEj' isn't defined
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make[3]: *** [/home/deleisha/CodeSpace/pegasus/pkg/lib/libpeggeneral.so.1] Error 1
> make[3]: Leaving directory `/home/deleisha/CodeSpace/pegasus/src/Pegasus/General'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/deleisha/CodeSpace/pegasus/src/Pegasus'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/deleisha/CodeSpace/pegasus/src'
> make: *** [all] Error 2

Clang's handling of visibility has improved greatly since Clang 2.9. Please try the latest Clang trunk and see if that works for you.

	- Doug

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110914/218f1bb7/attachment.html>


More information about the cfe-dev mailing list