problem about using LLVM

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@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

On 15 Sep 2014 18:40, “Yong Xu” <

bypassMain.cpp:1:10: fatal error: ‘llvm/Constants.h’ file not found
#include “llvm/Constants.h”
^
1 error generated.

What is matter?

Did you remember to install the llvm-dev package ( probably called llvm-3.4-dev)? You need the header files and libraries so you build applications that use LLVM.