hi,您好,我根据您的指点进行编译,遇到了一些问题,希望得到您的建议。
我使用的是ubuntu 16.04, 这一点应该影响不大。关键在于DbgHelp.h。我在windows kits 10中找到了这个文件,但是它include minidumpapiset.h。于是我再次找到这个文件放入Bochspwn目录下。执行Make,爆出了大量错误。如下。

DbgHelp.h:146:5: error: _Out_writes_ has not been declared
     _Out_writes_(MAX_PATH + 1) PSTR DebugFilePath,
     ^
In file included from /usr/share/mingw-w64/include/windef.h:8:0,
                 from /usr/share/mingw-w64/include/windows.h:69,
                 from instrument.cc:24:
DbgHelp.h:146:18: error: expected ) before numeric constant
     _Out_writes_(MAX_PATH + 1) PSTR DebugFilePath,
                  ^
DbgHelp.h:146:18: error: expected ) before numeric constant
DbgHelp.h:146:18: error: expected initializer before numeric constant
In file included from symbols.h:24:0,
                 from instrument.cc:35:
DbgHelp.h:163:5: error: _Out_writes_ has not been declared
     _Out_writes_(MAX_PATH + 1) PWSTR DebugFilePath,
     ^
In file included from /usr/share/mingw-w64/include/windef.h:8:0,
                 from /usr/share/mingw-w64/include/windows.h:69,
                 from instrument.cc:24:
DbgHelp.h:163:18: error: expected ) before numeric constant
     _Out_writes_(MAX_PATH + 1) PWSTR DebugFilePath,
                  ^
DbgHelp.h:163:18: error: expected ) before numeric constant
DbgHelp.h:163:18: error: expected initializer before numeric constant
In file included from symbols.h:24:0,
                 from instrument.cc:35:
DbgHelp.h:173:5: error: _Out_writes_ has not been declared
     _Out_writes_(MAX_PATH + 1) PSTR DebugFilePath
     ^
In file included from /usr/share/mingw-w64/include/windef.h:8:0,
                 from /usr/share/mingw-w64/include/windows.h:69,
                 from instrument.cc:24:
DbgHelp.h:173:18: error: expected ) before numeric constant
     _Out_writes_(MAX_PATH + 1) PSTR DebugFilePath
                  ^
DbgHelp.h:173:18: error: expected ) before numeric constant
DbgHelp.h:173:18: error: expected initializer before numeric constant
In file included from symbols.h:24:0,
                 from instrument.cc:35:
DbgHelp.h:181:5: error: _Out_writes_ has not been declared
     _Out_writes_(MAX_PATH + 1) PSTR  DebugFilePath,
     ^
In file included from /usr/share/mingw-w64/include/windef.h:8:0,
                 from /usr/share/mingw-w64/include/windows.h:69,
                 from instrument.cc:24:
DbgHelp.h:181:18: error: expected ) before numeric constant
     _Out_writes_(MAX_PATH + 1) PSTR  DebugFilePath,
                  ^
DbgHelp.h:181:18: error: expected ) before numeric consta

楼主您这边用的是什么版本的DbgHelp.h?是否曾遇到过这些错误,期待你的意见。