[cfe-dev] (no subject)

vvishalggupta via cfe-dev cfe-dev at lists.llvm.org
Mon Nov 21 12:05:16 PST 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20161122/3ae3296d/attachment.html>


More information about the cfe-dev mailing list