[cfe-dev] Reg :: Clang Linking

Sumit Adhikari sumit.adhikari at gmail.com
Fri Sep 20 11:10:25 PDT 2013


Dear All,

I am very new to Clang and LLVM. I am very interested in Clang API feature.

I have some trouble in linking some Clang API codes I downloaded from
internet.

The code is failing with compile and linker flags derived from:

llvm-config --cppflags --ldflags --libs all

My questions are,

1. when I compile clang and llvm can I link them to only two separate
archives ?

2. Where do I get a good document on Clang API usage.

The script :


set LFLAGS=`/home/****/llvm_local_install/bin/llvm-config --cppflags
--ldflags --libs all`

clang++ -v ${LFLAGS} clan_ex.cpp -lpthread


Regards,


-- 
Sumit Adhikari,
Senior Architect - Product Development,
Synphony Teleca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130920/10d94914/attachment.html>


More information about the cfe-dev mailing list