[llvm-dev] llvm-config linking too much?

Russell Wallace via llvm-dev llvm-dev at lists.llvm.org
Thu Mar 24 19:50:15 PDT 2016


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>


More information about the llvm-dev mailing list