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

Dev Meetei dlmeetei at gmail.com
Tue Sep 13 05:50:44 PDT 2011


Thought of supporting the clang for our open source project.
Unfortunately, The linker fails. 
Any way to resolve this


/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/clangpkg/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/clangpkg/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
[deleisha at oc2078127568 pegasus]$ 


--
View this message in context: http://clang-developers.42468.n3.nabble.com/Another-Linker-error-with-clang-tp3332506p3332506.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list