Russell Wallace via llvm-dev
2016-Mar-25 02:50 UTC
[llvm-dev] llvm-config linking too much?
When trying to link a program with LLVM on Linux, I'm getting an error message that main is defined twice. As far as I can see, the problem is that 'llvm-config --libs' says -lgtest_main, which seems to be some sort of test file that contains its own definition of main. What's the recommended solution to this, or is there something I'm missing? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160325/063b871a/attachment.html>