Errors compiling pin tool with python includes, getting error C2872: 'UINT32' : ambiguous symbol

拥有回忆 提交于 2019-12-01 11:22:15

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!