[cfe-dev] (no subject)

Mehdi Amini via cfe-dev cfe-dev at lists.llvm.org
Mon Nov 21 18:21:07 PST 2016


Hi,

I believe that this is caused by libterminfo. You need to link to libterminfo.

There might be other missing libs depending on the config, see the logic in llvm/lib/Support/CMakeLists.txt to initialize `system_libs`.

— 
Mehdi


> On Nov 21, 2016, at 12:05 PM, vvishalggupta via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> 
> Hello,
> 
> I'm not able to compile simple plugins. 
> I'm working on clang++.
> Always facing compilation error:
> 
> undefined reference to `clang::FullSourcrLoc::getSpellingLineNumber (bool*) const`
> ^usr/lib/.........../libLLVMSupport.a (Process.cpp.o): In function `terminalHasColors`:
> /usr/src/........../Support/Unix/Process.inc:357: undefined reference to 'setupterm`
> undefined reference to 'tigetnum`
> undefined reference to `set_curterm`
> 
> Linker via gcc command failed with exit code 1
> 
> 
> 
> Im compiling code using cmake.
> My CMakeLists.txt consist of 
> 
> Add_definations (-D__STD_LIMIT_MACROS 
> -D__STD_CONSTANT_MACROS -fno-rtti -Wall -std=c++14 -stdlib=libc++abi -O2) 
> Target_link_libraries (exename clang clangfrontend clangast clangtooling llvmsupport) 
> 
> 
> Dont know what am i doing wrong. 
> 
> REGARDS,
> Vishal Gupta
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

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


More information about the cfe-dev mailing list