I\'m trying to compile pin tool with Python.h
and am getting more then 100 errors about ambiguous symbols.
I tried to separate the include
If you want to use the Windows.h header you must use it in its own namespace:
namespace WINDOWS
{
#include <Windows.h>
}
And then use something from Windows.h by using its namespace:
WINDOWS::DWORD foo; // use WINDOWS namespace
If you don't use a namespace for the windows.h header you'll get tons of name collisions with various headers from PIN itself.
edit:
Just remembered that is was mentioned somewhere on the manual (see: "Conflicts between Pin and Windows"):
https://software.intel.com/sites/landingpage/pintool/docs/65163/Pin/html/index.html#RESTRICTIONS