harvard-acc / LLVM-Tracer

An LLVM pass to profile dynamic LLVM IR instructions and runtime values
Other
135 stars 35 forks source link

full_trace.cpp:1:10: fatal error: 'vector' file not found #7

Closed andrestoga closed 8 years ago

andrestoga commented 8 years ago

Hi,

I got the following error trying to make full-trace:

full_trace.cpp:1:10: fatal error: 'vector' file not found

include

     ^

Can you help me please?

Best,

ysshao commented 8 years ago

Hi andrestoga,

This is because that clang can't find the c++ headers. Can you do a

which gcc

on your machine and then set GCC_INSTALL_HOME to be:

export GCC_INSTALL_HOME=/path/to/your/gcc-4.7-or-up/installation

For example, if your gcc is at /usr/local/bin/gcc, then set your GCC_INSTALL_HOME to be /usr/local/.

Let me know whether it works.

Thanks, Sophia

andrestoga commented 8 years ago

Hi Sophia,

Thanks for your answer!

It worked, I set GCC_INSTALL_HOME as a /usr/local/bin instead as a /usr/local

Thanks for your help. Now I have another problem regarding running the example. I'm gonna create another thread for that.

Thanks!

Best,