Displaying 1 result from an estimated 1 matches for "r122491".
2010 Dec 23
1
[LLVMdev] Linking to LLVM with CMake
...e_directories(${LLVM_INCLUDE_DIR})
link_directories(${LLVM_LINK_DIR})
add_definitions(-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS)
add_executable(nvm main.cpp)
llvm_config(nvm engine)
------------
cmake succeeds in generating the makefile - so it is correctly finding the
installed LLVM (2.8, r122491), which compiled fine.
The build fails, complaining of:
CMakeFiles/nvm.dir/main.cpp.o: In function `global constructors keyed to
main':
main.cpp:(.text+0x41): undefined reference to `LLVMLinkInJIT'
CMakeFiles/nvm.dir/main.cpp.o: In function `main':
main.cpp:(.text+0x55): undefined ref...