[LLVMdev] LLVM Help

John Criswell jtcriswel at gmail.com
Sun Nov 2 06:49:54 PST 2014


On 11/2/14, 12:35 AM, Omar Abed Alkar Darwish wrote:
> Hi All,
>
> I have a problem of updating a pass in LLVM the problem is very simple but I don't know how to solve it. I have the Instcount.cpp  pass under
> /home/omar/Desktop/llvm/lib/Analysis
>
> all what I need is to add any print statement on the Instcount.cpp and see the reflects of this print statement.
>
> Actually I add the print statement on the Instcount.cpp then I wrote the following commands on the terminal:
>
> cd /home/omar/Desktop/llvm/lib/Analysis
> make InstCount
>
> but I get the following error :
>
> ng++     InstCount.cpp   -o InstCount
> InstCount.cpp:14:10: fatal error: 'llvm/Analysis/Passes.h' file not found
> #include "llvm/Analysis/Passes.h"

If you are compiling the file without using the LLVM Makefiles, you need 
to add the appropriate -I and -L options to tell the compiler how to 
find the LLVM header files and LLVM libraries.

Regards,

John Criswell

>           ^
> 1 error generated.
> make: *** [InstCount] Error 1
>
> attached is the screenshot of the error.
>
> Please give me a hand I am already stuck in this point.
>
> Thanks,
> --Omar
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev


-- 
John Criswell
Assistant Professor
Department of Computer Science, University of Rochester
http://www.cs.rochester.edu/u/criswell

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141102/09162bad/attachment.html>


More information about the llvm-dev mailing list