<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I believe that this is caused by libterminfo. You need to link to libterminfo.</div><div class=""><br class=""></div><div class="">There might be other missing libs depending on the config, see the logic in llvm/lib/Support/CMakeLists.txt to initialize `system_libs`.</div><div class=""><br class=""></div><div class="">— </div><div class="">Mehdi</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On Nov 21, 2016, at 12:05 PM, vvishalggupta via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class=""><div class=""><div class="">Hello,</div><div class=""><br class=""></div><div class="">I'm not able to compile simple plugins. </div><div class="">I'm working on clang++.</div><div class="">Always facing compilation error:</div><div class=""><br class=""></div><div class=""><i class="">undefined reference to `clang::FullSourcrLoc::getSpellingLineNumber (bool*) const`</i></div><div class=""><i class="">^usr/lib/.........../libLLVMSupport.a (Process.cpp.o): In function `terminalHasColors`:</i></div><div class=""><i class="">/usr/src/........../Support/Unix/Process.inc:357: undefined reference to 'setupterm`</i></div><div class="">undefined reference to 'tigetnum`</div><div class="">undefined reference to `set_curterm`</div><div class=""><br class=""></div><div class=""><i class="">Linker via gcc command failed with exit code 1</i></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Im compiling code using cmake.</div><div class="">My CMakeLists.txt consist of </div><div class=""><br class=""></div><div class=""><b class="">Add_definations</b> (-D__STD_LIMIT_MACROS </div><div class="">-D__STD_CONSTANT_MACROS -fno-rtti -Wall -std=c++14 -stdlib=libc++abi -O2) </div><div class=""><b class="">Target_link_libraries</b> (exename clang clangfrontend clangast clangtooling llvmsupport) </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Dont know what am i doing wrong. </div><div class=""><br class=""></div><div class="">REGARDS,</div><div class="">Vishal Gupta</div></div>_______________________________________________<br class="">cfe-dev mailing list<br class=""><a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev<br class=""></div></blockquote></div><br class=""></div></body></html>