Root on x86_64 ubuntu 11.10 - cannot open header file

Dear root community,

I’m trying to install and run root on ubuntu 11.10, x86_64 version. First I couldn’t even compile it, but eventually it worked thanks to this thread: [url]ROOT 5.30 does not compile with gcc 4.61? Now I have a problem running it. When executing a macro from root it complains that it can’t find a header file:

here is my macro:

#include <stdint.h>
void test()
{
  cout << "hello" << endl;
}

The problem might be rather obvious - the file is located in /usr/include/x86_64-linux-gnu, which is, by some reason, not known to root (or to g++, or to ubuntu). Is it connected with the new gcc-4.6.1 or is it a common problem with x86_64, or is it ubuntu- specific problem? How to tell root that it has to search for headers also in this location?

I found a report of a similar problem in this post: http://askubuntu.com/questions/41183/compiling-g-4-7-0-in-11-04, but the solution proposed there didn’t work.

Thanks,
Yuri.

sudo apt-get install gcc-4.6-multilib