[cfe-dev] Error using example plugin
pushkar.ratnalikar at gmail.com
Wed Dec 23 15:40:54 PST 2009
I am relatively new to clang. I recently downloaded the latest code from the
subversion repository and tried to compile and use the plugin in the
examples directory. I followed the instructions in the README file and
rebuilt clang by disabling the TOOL_NO_EXPORT.
I am able to generate the libPrintFunctionNames.so file. But when I try to
use it, I get the error "unable to find plugin 'print-fns'"
I am invoking it using "$ clang -cc1 -load LLVM/llvm-2.6/Release/lib -plugin
libPrintfunctionNames is in LLVM/llvm-2.6/Release/lib
The source file "trial.c" has the following code
int main(int argc, char** argv)
printf("Hello World %d\n",z);
Am I missing something?
Thanks in advance !
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev