none
Problems when compiling dbghelp.h RRS feed

  • Question

  • When I try to compile dbghelp.h i get errors such as:

    Error 1 error C2146: syntax error : missing ';' before identifier 'ModuleName' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\dbghelp.h 62 
    Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\dbghelp.h 62 
    ...

    I have added dbghelp.lib as an additional dependencie but it doesnt make a difference. I know i am doing something really basic wrong but cant figure out what.

    Any help is greatly appreciated since I have spent an embarassing amount of time on this problem.
    Wednesday, October 22, 2008 6:55 AM

Answers

  • If my dbghelp.h version is the same as yours, line 62 contains HANDLE type. Try to include Windows.h before dbghelp.h.
    • Marked as answer by a-Francois- Wednesday, October 22, 2008 7:50 AM
    Wednesday, October 22, 2008 7:22 AM

All replies

  • If my dbghelp.h version is the same as yours, line 62 contains HANDLE type. Try to include Windows.h before dbghelp.h.
    • Marked as answer by a-Francois- Wednesday, October 22, 2008 7:50 AM
    Wednesday, October 22, 2008 7:22 AM
  • Thank you!

    It works after:

    #include <windows.h>

    #include <assert.h>

    #include <stdio.h>

    #include <tchar.h>

     

    Wednesday, October 22, 2008 7:49 AM