[cfe-dev] Error using example plugin

Pushkar Ratnalikar pushkar.ratnalikar at gmail.com
Wed Dec 23 15:40:54 PST 2009

Hello All,

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
print-fns trial.c"

libPrintfunctionNames is in LLVM/llvm-2.6/Release/lib

The source file "trial.c" has the following code
#include <stdio.h>

int f();
int g();
int main(int argc, char** argv)
    int x,y,z;
    printf("Hello World %d\n",z);
    return 0;

Am I missing something?

Thanks in advance !

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091223/26a8e118/attachment.html>

More information about the cfe-dev mailing list