* Source: 
https://github.com/openjdk/jdk/blob/master/src/jdk.hotspot.agent/windows/native/libsaproc/sawindbg.cpp
* Error: undefined reference to '_GUID const&
__mingw_uuidof<IDebugOutputCallbacks>()'
* Minimal sample attached, derived from sawindbg.cpp.
* Microsoft documentation[1] does not mention any import library. For
testing, I have tried to add dbgeng.h in crt/libsrc/uuid.c. But it
results compiler error while compiling crt.

In file included from mingw-w64/mingw-w64-crt/libsrc/uuid.c:29:
dbgeng.h:79:31: error: unknown type name 'IDebugAdvanced'; did you
mean 'IDebugAdvancedVtbl'?
   79 |     STDMETHOD(QueryInterface)(THIS_ REFIID InterfaceId,PVOID
*Interface) PURE;
      |                               ^~~~~

* The only thing I have not tried to convert dbgeng.h to IDL file and
include the generated header file in uuid.c. Would that be a correct
workaround?

[1]: 
https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/dbgeng/nn-dbgeng-idebugoutputcallbacks


_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to