[LLVMdev] problem about using LLVM

Yong Xu xyus at whu.edu.cn
Mon Sep 15 00:09:25 PDT 2014


Hi,

   I am a newbie to LLVM. I encountered a problem when i used LLVM.
   
   I have installed LLVM 3.4 on Ubuntun.  

   When i run llvm-as, the following is returned.
  xu at ubuntu:/media/floppy1/sample$ llvm-as --version
  LLVM (http://llvm.org/):
  LLVM version 3.4
  Optimized build with assertions.
  Built Sep  5 2014 (21:36:09).
  Default target: i386-pc-linux-gnu
  Host CPU: corei7

  However, when i compile a project , the following error emerged.

bypassMain.cpp:1:10: fatal error: 'llvm/Constants.h' file not found
#include "llvm/Constants.h"
         ^
1 error generated.

What is matter?  

Best Regards!

Yong Xu




More information about the llvm-dev mailing list