[LLVMdev] llvm-config error

NAKAMURA Takumi geek4civic at gmail.com
Mon Sep 6 18:17:38 PDT 2010


Hello, António.

2010/9/7 António Saragga Seabra <antseabra at gmail.com>:

> I’m having a few problems building the kaleidoscope example (chapter 3)
> under MinGW. To build the example I use as recommended

> g++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy
> sh: llvm-config: command not found

You need MSYS's perl to use llvm-config on mingw.

Does this below work?
-D_DEBUG (might be -DNDEBUG)
-D__NO_CTYPE_INLINE
-D_GNU_SOURCE
-D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS
-lLLVMCore -lLLVMSupport -lLLVMSystem
-lpsapi -limagehlp -lm

...Takumi




More information about the llvm-dev mailing list