[cfe-dev] Trouble compiling PrintFunctionNames plugin example
Brian Duff
bduff at google.com
Sat Mar 2 16:48:19 PST 2013
Hi,
On Mac OS X 10.8.2, I installed clang following instructions here:
http://clang.llvm.org/get_started.html
At the root of the llvm directory, I ran:
./configure
make BUILD_EXAMPLES=1
When compiling the PrintFunctionNames plugin example, I see the warnings
below. From instructions
in llvm/tools/clang/examples/PrintFunctionNames/README.txt, I expect ld to
emit libPrintFunctionNames.dylib, however no dynamic library is generated
in clang/examples/PrintFunctionNames/Debug+Asserts.
Any idea what I'm doing wrong? :)
llvm[4]: Linking Debug+Asserts Shared Library libPrintFunctionNames.dylib
ld: warning: cannot export hidden symbol
llvm::Registry<clang::PluginASTAction,
llvm::RegistryTraits<clang::PluginASTAction>
>::node::node(llvm::SimpleRegistryEntry<clang::PluginASTAction> const&)
from
/Users/bduff/Documents/Development/clang/llvm/llvm/tools/clang/examples/PrintFunctionNames/Debug+Asserts/PrintFunctionNames.o
ld: warning: cannot export hidden symbol
llvm::Registry<clang::PluginASTAction,
llvm::RegistryTraits<clang::PluginASTAction>
>::node::node(llvm::SimpleRegistryEntry<clang::PluginASTAction> const&)
from
/Users/bduff/Documents/Development/clang/llvm/llvm/tools/clang/examples/PrintFunctionNames/Debug+Asserts/PrintFunctionNames.o
ld: warning: cannot export hidden symbol
llvm::Registry<clang::PluginASTAction,
llvm::RegistryTraits<clang::PluginASTAction>
>::Announce(llvm::SimpleRegistryEntry<clang::PluginASTAction> const&) from
/Users/bduff/Documents/Development/clang/llvm/llvm/tools/clang/examples/PrintFunctionNames/Debug+Asserts/PrintFunctionNames.o
llvm[4]: Building Debug+Asserts Archive Library libPrintFunctionNames.a
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130302/ad259cca/attachment.html>
More information about the cfe-dev
mailing list