<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>Hello,</div><div><br></div><div>I'm not able to compile simple plugins. </div><div>I'm working on clang++.</div><div>Always facing compilation error:</div><div><br></div><div><i>undefined reference to `clang::FullSourcrLoc::getSpellingLineNumber (bool*) const`</i></div><div><i>^usr/lib/.........../libLLVMSupport.a (Process.cpp.o): In function `terminalHasColors`:</i></div><div><i>/usr/src/........../Support/Unix/Process.inc:357: undefined reference to 'setupterm`</i></div><div>undefined reference to 'tigetnum`</div><div>undefined reference to `set_curterm`</div><div><br></div><div><i>Linker via gcc command failed with exit code 1</i></div><div><br></div><div><br></div><div><br></div><div>Im compiling code using cmake.</div><div>My CMakeLists.txt consist of </div><div><br></div><div><b>Add_definations</b> (-D__STD_LIMIT_MACROS </div><div>-D__STD_CONSTANT_MACROS -fno-rtti -Wall -std=c++14 -stdlib=libc++abi -O2) </div><div><b>Target_link_libraries</b> (exename clang clangfrontend clangast clangtooling llvmsupport) </div><div><br></div><div><br></div><div>Dont know what am i doing wrong. </div><div><br></div><div>REGARDS,</div><div>Vishal Gupta</div></body></html>