which libs do I need to link to build the c-index-test?

Hi, I'm a mingw user, and I have succefully build llvm+clang under msys+mingw. (yes, c-index-test build Ok under MSYS).

Now, I just copy the source code: (renamed it as main.cpp to my codeblocks project)
E:\svn_llvm\llvm\tools\clang\tools\c-index-test\c-index-test.c

then, I try to add some include search path and lib search path.

the compiling stage works OK, but the link stage has some problems like:

c-index-test should only need to link against libclang, since it uses the C interface to Clang.

  - Doug

Thanks for your reply!!
Now, I have successfully build my c++ project.

I just follow these these way:
I go to the folder:
/f/llvm_build/build/tools/clang/tools/c-index-test
and run the command:

make VERBOSE=1 ENABLE_OPTIMIZED=1 DISABLE_ASSERTIONS=1

This way, I get the verbose of the build log, then all the libraries I need to build my project(c++ project), they are listed here:

-lclang
-lclangIndex
-lclangFrontend
-lclangDriver
-lclangSerialization
-lclangParse
-lclangSema
-lclangAnalysis
-lclangAST
-lclangLex
-lclangBasic
-lLLVMMC
-lLLVMBitReader
-lLLVMCore
-lLLVMSupport
-lpthread
-lpsapi
-limagehlp
-lm

Also, some extra Macros:
__NO_CTYPE_INLINE
_GNU_SOURCE
__STDC_LIMIT_MACROS
_STDC_CONSTANT_MACROS

Then, I need to change the source code a little to build it as a c++ source.