<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<p class="MsoNormal">Hi  Clang Developers,</p>

<p class="MsoNormal"><o:p> </o:p></p>

<p class="MsoPlainText">I downloaded the latest revision (r123891) of LLVM via
SVN and followed the instructions at <a href="http://clang.llvm.org/get_started.html">http://clang.llvm.org/get_started.html</a> 
to configure and build. </p>

<p class="MsoPlainText"><o:p> </o:p></p>

<p class="MsoPlainText">While building I received  following error:</p>

<p class="MsoPlainText"> </p>

<p class="MsoPlainText">Linking Debug+Asserts executable FileCheck</p>

<p class="MsoPlainText">/u/asudani/project/build/Debug+Asserts/lib/libLLVMSupport.a(Program.o):
In function `char* std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_S_construct<char const*>(char const*,
char const*, std::allocator<char> const&,
std::forward_iterator_tag)':</p>

<p class="MsoPlainText">/usr/software/lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../include/c++/4.1.1/bits/basic_string.tcc:158:
undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::_Rep::_M_set_length_and_sharable(unsigned long)</p>

<p class="MsoPlainText"><o:p> </o:p></p>

<p class="MsoPlainText">Searching for error directed me to forum suggesting
addition of –lstdc++ linker option:<a href="http://www.codeguru.com/forum/archive/index.php/t-351875.html">http://www.codeguru.com/forum/archive/index.php/t-351875.html</a>.</p>

<p class="MsoPlainText">I tried to modify makefile but it didn’t worked. What is
the best way to modify LDFLAGS for incorporating the specified option ? </p>

<p class="MsoPlainText"><o:p> </o:p></p>

<p class="MsoPlainText"><o:p> </o:p></p>

<p class="MsoPlainText">After looking logs for past revisions, one of them
(r121379) yielded:</p>

<p class="MsoPlainText"><o:p> </o:p></p>

<p class="MsoPlainText">r121379 | mspencer | 2010-12-09 23:06:48 +0530 (Thu, 09
Dec 2010) | 1 line</p>

<p class="MsoPlainText">Support/MemoryBuffer: Replace all uses of std::string
*ErrMsg with error_code &ec. </p>

<p class="MsoPlainText">And fix clients.</p>

<p class="MsoPlainText"> </p>

<p class="MsoPlainText"><o:p> </o:p></p>

<p class="MsoPlainText">I want to know if these observations are related in any
way and if this is known error and has been encountered before by users.</p>

<p class="MsoPlainText"> </p>

<p class="MsoPlainText"><o:p> </o:p></p>

<p class="MsoPlainText">Thanks </p>

<p class="MsoPlainText">Mohit Asudani</p>

<p class="MsoPlainText"><o:p> </o:p></p>

<p class="MsoNormal"><o:p> </o:p></p>                                      </body>
</html>