linking error while creating an llvm project

Hey all,

I followed the instructions on http://llvm.org/docs/Projects.html to start my llvm project.

In the sample project, I simply added my code to handle the commmandline options as described at http://llvm.org/docs/CommandLine.html

However, I get the linking error while making my sample project.

main.cpp:(.text+0x3d): undefined reference to `llvm::cl::ParseCommandLineOptions(int, char**, char const*, bool)'
collect2: ld returned 1 exit status

How to handle this ? Do I need to modify the default makefile?

Thank you for your help!

-Wink