Jump to content
  • Advertisement
Sign in to follow this  
eDuDe

Help with getting dbghelp.h to compile

This topic is 3265 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm attempting to write a simple minidump project, but I'm getting a tone of errors while compiling with dbghelp.h.
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(61) : error C2146: syntax error : missing ';' before identifier 'ModuleName'
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(61) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(61) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(62) : error C2146: syntax error : missing ';' before identifier 'hFile'
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(62) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(62) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(63) : error C2146: syntax error : missing ';' before identifier 'MappedAddress'
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(63) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(63) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(67) : error C2146: syntax error : missing ';' before identifier 'FileHeader'
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(67) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(67) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(69) : error C2146: syntax error : missing ';' before identifier 'LastRvaSection'
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(69) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(69) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(70) : error C2146: syntax error : missing ';' before identifier 'NumberOfSections'
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(70) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(70) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(71) : error C2146: syntax error : missing ';' before identifier 'Sections'
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(71) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(71) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(72) : error C2146: syntax error : missing ';' before identifier 'Characteristics'
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(72) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(72) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(73) : error C2146: syntax error : missing ';' before identifier 'fSystemImage'
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(73) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(73) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(74) : error C2146: syntax error : missing ';' before identifier 'fDOSImage'
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(74) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(74) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(75) : error C2146: syntax error : missing ';' before identifier 'Links'
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(75) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(75) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(76) : error C2146: syntax error : missing ';' before identifier 'SizeOfImage'
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(76) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(76) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(83) : error C2146: syntax error : missing ';' before identifier 'DECLSPEC_IMPORT'
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(83) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(83) : error C2143: syntax error : missing ';' before '__stdcall'
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(83) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(85) : error C2065: 'PSTR' : undeclared identifier
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(85) : error C2146: syntax error : missing ')' before identifier 'FileName'
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(85) : warning C4229: anachronism used : modifiers on data are ignored
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(85) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(88) : error C2059: syntax error : ')'
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(91) : error C2065: 'CALLBACK' : undeclared identifier
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(91) : error C2065: 'PFIND_DEBUG_FILE_CALLBACK' : undeclared identifier
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(91) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\program files\microsoft visual studio 8\vc\platformsdk\include\dbghelp.h(91) : fatal error C1903: unable to recover from previous error(s); stopping compilation

I'm a little confused on how to fix this. I mean, its trying to compile using dbghelp.h, so it should know where it is (since its packaged with Visual Studios anyways). I'm also using #pragma comment( lib, "dbghelp.lib" ) to make sure that dbghelp.lib is being linked to. Anyone know what the problem is?

Share this post


Link to post
Share on other sites
Advertisement
You should also post that file you're including dbghelp.h from.

My guess is that you forgot to #include <windows.h> first.

Share this post


Link to post
Share on other sites
WOW. Yeah, I was including windows.h but I was doing it after I was including dbghelp.h. Whoops. Thanks for helping me catch that brain fart.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!