[LLVMdev] llvm-config error

António Saragga Seabra antseabra at gmail.com
Tue Sep 7 07:48:23 PDT 2010


Hi, Takumi!


Running llvm-config --cppflags –-ldflags –-libs core gives:



-Ic:/llvm-source-2.7/include –I/c/llvm-2.7/include –D_DEBUG
–D__NO_CTYPE_INLINE –D_GNU_SOURCE –D__STDC_LIMIT_MACROS
–D__STDC_CONSTANT_MACROS -L/c/llvm-2.7/Release/lib –lpsapi –limagehlp –lm
–lLLVMCore –lLLVMSupport –lLLVMSystem

I followed your suggestion and changed libs order manualy to:

–lLLVMCore –lLLVMSupport –lLLVMSystem –lpsapi –limagehlp –lm

and it worked like a charm !!! Everything compiled fine!

Many many thanks!!
Antonio



2010/9/7 NAKAMURA Takumi <geek4civic at gmail.com>

> Good afternoon, António.
>
> 2010/9/7 António Saragga Seabra <antseabra at gmail.com>:
> > $g++ -g –O3 toy.cpp `llvm-config –cppflags –ldflags –libs core`-o toy
> >
> >
> c:/llvm-2.7/Release/lib/libLLVMSystem.a(Signals.o):Signals.cpp:(.text+0x4d4):
> > undefined reference to `_imp__SymSetOptions at 4'
>
> I guess it might be a known issue;
> http://llvm.org/bugs/show_bug.cgi?id=3347
>
> Would you like me to show the result of "llvm-config –cppflags
> –ldflags –libs core"?
> And please try specifying libs (-lLLVMCore -lLLVMSupport -lLLVMSystem
> -lpsapi -limagehlp -lm) manually.
>
> ...Takumi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100907/d22e130d/attachment.html>


More information about the llvm-dev mailing list