Code::Blocks Forums
User forums => Help => Topic started by: Squall338 on May 08, 2017, 07:00:20 pm
-
I'm currently working on a game using C++ and SDL and as I was build and running I get an error related to Imagehlp.h which seems like everything is wrong with this file and I'm not sure what to do about it. Searching google turns up nothing really just a general troubleshoot page and a page with the code for the header file but no answers.
Thank you for your help.
Below is my build log:
-------------- Build: Debug in PostAdvGame (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -fexceptions -g -IF:\SDL\SDL-1.2.15\include\SDL -c F:\CodeGames\Post\PostAdvGame\BossEnt.cpp -o obj\Debug\BossEnt.o
In file included from F:\CodeGames\Post\PostAdvGame\PlayerEnt.h:6:0,
from F:\CodeGames\Post\PostAdvGame\EntFactory.h:10,
from F:\CodeGames\Post\PostAdvGame\BossEnt.h:7,
from F:\CodeGames\Post\PostAdvGame\BossEnt.cpp:1:
c:\mingw\include\imagehlp.h:98:14: error: typedef 'BOOL' is initialized (use decltype instead)
typedef BOOL(STDCALL*PIMAGEHLP_STATUS_ROUTINE)(IMAGEHLP_STATUS_REASON,LPSTR,LPSTR,ULONG,ULONG);
^
c:\mingw\include\imagehlp.h:98:14: error: 'STDCALL' was not declared in this scope
c:\mingw\include\imagehlp.h:98:22: error: 'PIMAGEHLP_STATUS_ROUTINE' was not declared in this scope
typedef BOOL(STDCALL*PIMAGEHLP_STATUS_ROUTINE)(IMAGEHLP_STATUS_REASON,LPSTR,LPSTR,ULONG,ULONG);
^
c:\mingw\include\imagehlp.h:100:2: error: 'LPSTR' does not name a type
LPSTR ModuleName;
^
c:\mingw\include\imagehlp.h:101:2: error: 'HANDLE' does not name a type
HANDLE hFile;
^
c:\mingw\include\imagehlp.h:102:2: error: 'PUCHAR' does not name a type
PUCHAR MappedAddress;
^
c:\mingw\include\imagehlp.h:103:2: error: 'PIMAGE_NT_HEADERS' does not name a type
PIMAGE_NT_HEADERS FileHeader;
^
c:\mingw\include\imagehlp.h:104:2: error: 'PIMAGE_SECTION_HEADER' does not name a type
PIMAGE_SECTION_HEADER LastRvaSection;
^
c:\mingw\include\imagehlp.h:105:2: error: 'ULONG' does not name a type
ULONG NumberOfSections;
^
c:\mingw\include\imagehlp.h:106:2: error: 'PIMAGE_SECTION_HEADER' does not name a type
PIMAGE_SECTION_HEADER Sections;
^
c:\mingw\include\imagehlp.h:107:2: error: 'ULONG' does not name a type
ULONG Characteristics;
^
c:\mingw\include\imagehlp.h:108:2: error: 'BOOLEAN' does not name a type
BOOLEAN fSystemImage;
^
c:\mingw\include\imagehlp.h:109:2: error: 'BOOLEAN' does not name a type
BOOLEAN fDOSImage;
^
c:\mingw\include\imagehlp.h:110:2: error: 'LIST_ENTRY' does not name a type
LIST_ENTRY Links;
^
c:\mingw\include\imagehlp.h:111:2: error: 'ULONG' does not name a type
ULONG SizeOfImage;
^
c:\mingw\include\imagehlp.h:114:2: error: 'LIST_ENTRY' does not name a type
LIST_ENTRY List;
^
c:\mingw\include\imagehlp.h:115:2: error: 'DWORD' does not name a type
DWORD Size;
^
c:\mingw\include\imagehlp.h:116:2: error: 'PVOID' does not name a type
PVOID MappedBase;
^
c:\mingw\include\imagehlp.h:117:2: error: 'USHORT' does not name a type
USHORT Machine;
^
c:\mingw\include\imagehlp.h:118:2: error: 'USHORT' does not name a type
USHORT Characteristics;
^
c:\mingw\include\imagehlp.h:119:2: error: 'DWORD' does not name a type
DWORD CheckSum;
^
c:\mingw\include\imagehlp.h:120:2: error: 'DWORD' does not name a type
DWORD ImageBase;
^
c:\mingw\include\imagehlp.h:121:2: error: 'DWORD' does not name a type
DWORD SizeOfImage;
^
c:\mingw\include\imagehlp.h:122:2: error: 'DWORD' does not name a type
DWORD NumberOfSections;
^
c:\mingw\include\imagehlp.h:123:2: error: 'PIMAGE_SECTION_HEADER' does not name a type
PIMAGE_SECTION_HEADER Sections;
^
c:\mingw\include\imagehlp.h:124:2: error: 'DWORD' does not name a type
DWORD ExportedNamesSize;
^
c:\mingw\include\imagehlp.h:125:2: error: 'LPSTR' does not name a type
LPSTR ExportedNames;
^
c:\mingw\include\imagehlp.h:126:2: error: 'DWORD' does not name a type
DWORD NumberOfFunctionTableEntries;
^
c:\mingw\include\imagehlp.h:127:2: error: 'PIMAGE_FUNCTION_ENTRY' does not name a type
PIMAGE_FUNCTION_ENTRY FunctionTableEntries;
^
c:\mingw\include\imagehlp.h:128:2: error: 'DWORD' does not name a type
DWORD LowestFunctionStartingAddress;
^
c:\mingw\include\imagehlp.h:129:2: error: 'DWORD' does not name a type
DWORD HighestFunctionEndingAddress;
^
c:\mingw\include\imagehlp.h:130:2: error: 'DWORD' does not name a type
DWORD NumberOfFpoTableEntries;
^
c:\mingw\include\imagehlp.h:131:2: error: 'PFPO_DATA' does not name a type
PFPO_DATA FpoTableEntries;
^
c:\mingw\include\imagehlp.h:132:2: error: 'DWORD' does not name a type
DWORD SizeOfCoffSymbols;
^
c:\mingw\include\imagehlp.h:133:2: error: 'PIMAGE_COFF_SYMBOLS_HEADER' does not name a type
PIMAGE_COFF_SYMBOLS_HEADER CoffSymbols;
^
c:\mingw\include\imagehlp.h:134:2: error: 'DWORD' does not name a type
DWORD SizeOfCodeViewSymbols;
^
c:\mingw\include\imagehlp.h:135:2: error: 'PVOID' does not name a type
PVOID CodeViewSymbols;
^
c:\mingw\include\imagehlp.h:136:2: error: 'LPSTR' does not name a type
LPSTR ImageFilePath;
^
c:\mingw\include\imagehlp.h:137:2: error: 'LPSTR' does not name a type
LPSTR ImageFileName;
^
c:\mingw\include\imagehlp.h:138:2: error: 'LPSTR' does not name a type
LPSTR DebugFilePath;
^
c:\mingw\include\imagehlp.h:139:2: error: 'DWORD' does not name a type
DWORD TimeDateStamp;
^
c:\mingw\include\imagehlp.h:140:2: error: 'BOOL' does not name a type
BOOL RomImage;
^
c:\mingw\include\imagehlp.h:141:2: error: 'PIMAGE_DEBUG_DIRECTORY' does not name a type
PIMAGE_DEBUG_DIRECTORY DebugDirectory;
^
c:\mingw\include\imagehlp.h:142:2: error: 'DWORD' does not name a type
DWORD NumberOfDebugDirectories;
^
c:\mingw\include\imagehlp.h:143:2: error: 'DWORD' does not name a type
DWORD Reserved[3];
^
c:\mingw\include\imagehlp.h:152:2: error: 'DWORD' does not name a type
DWORD Offset;
^
c:\mingw\include\imagehlp.h:153:2: error: 'WORD' does not name a type
WORD Segment;
^
c:\mingw\include\imagehlp.h:157:2: error: 'DWORD' does not name a type
DWORD Thread;
^
c:\mingw\include\imagehlp.h:158:2: error: 'DWORD' does not name a type
DWORD ThCallbackStack;
^
c:\mingw\include\imagehlp.h:159:2: error: 'DWORD' does not name a type
Process terminated with status 1 (0 minute(s), 0 second(s))
50 error(s), 0 warning(s) (0 minute(s), 0 second(s))
-
This file is not self sufficient, so it needs some other include directive before including it.
Please re-read the rules again, because you're violating them. This is a generic programming question and not one related to C::B!
-
This file is not self sufficient, so it needs some other include directive before including it.
Please re-read the rules again, because you're violating them. This is a generic programming question and not one related to C::B!
My mistake, I did not write this file or include it anywhere in the rest of my code. The only reason I know about it is because it popped up with all these errors.
Hence why I thought this was a codeblocks issue. I'm not stupid, why would I seek out specifically this forum for a generic programming question?
You are kind of rude.
-
If your MinGW GCC Compiler is NOT installed in "c:\mingw", you need to delete or rename the mingw folder on the C: Drive.
Edit: Please read these two links http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)
http://forums.codeblocks.org/index.php/topic,9996.0.html (http://forums.codeblocks.org/index.php/topic,9996.0.html)
Edit2: Added third link to read http://wiki.codeblocks.org/index.php/FAQ-General#Q:_What_Code::Blocks_is_not.3F (http://wiki.codeblocks.org/index.php/FAQ-General#Q:_What_Code::Blocks_is_not.3F)
Tim S.