• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Error: Compiling in Code::Blocks

Carinha

Revolutionary
Joined
Jun 8, 2010
Messages
13
Reaction score
0
Hello!

I'm compiling TFS 0.3.7, Tibia version9.6 in Code :: Blocks

and the following errors appear

Code:
exception.cpp|133|error: 'MINIDUMP_EXCEPTION_INFORMATION' was not declared in this scope|
exception.cpp|133|error: expected ';' before 'exceptionInformation'|
exception.cpp|134|error: 'exceptionInformation' was not declared in this scope|
exception.cpp|141|error: 'MINIDUMP_TYPE' was not declared in this scope|
exception.cpp|141|error: expected ';' before 'flags'|
exception.cpp|143|error: 'flags' was not declared in this scope|
exception.cpp|144|error: 'MiniDumpWriteDump' was not declared in this scope|
||=== Build finished: 7 errors, 0 warnings ===|


Sorry if I put in the wrong area or if the error is negligible, I am newbie in this area and would like to know if you have as you help me solve this problem!
 
Looks like you have some misplaced semicolons there.

Go to Exceptions.cpp line 133 and see if it matches this from there:

// Collect the exception information
MINIDUMP_EXCEPTION_INFORMATION exceptionInformation;
exceptionInformation.ClientPointers = FALSE;
exceptionInformation.ExceptionPointers = exceptionPointers;
exceptionInformation.ThreadId = GetCurrentThreadId();

HANDLE hProcess = GetCurrentProcess();
DWORD processId = GetProcessId(hProcess);

MINIDUMP_TYPE flags = (MINIDUMP_TYPE)(MiniDumpWithIndirectlyReferencedMemory);

BOOL dumpResult = MiniDumpWriteDump(hProcess, processId, hFile, flags,
&exceptionInformation, NULL, NULL);
 
- - - Updated - - -

Looks like you have some misplaced semicolons there.

Go to Exceptions.cpp line 133 and see if it matches this from there:

// Collect the exception information
MINIDUMP_EXCEPTION_INFORMATION exceptionInformation;
exceptionInformation.ClientPointers = FALSE;
exceptionInformation.ExceptionPointers = exceptionPointers;
exceptionInformation.ThreadId = GetCurrentThreadId();

HANDLE hProcess = GetCurrentProcess();
DWORD processId = GetProcessId(hProcess);

MINIDUMP_TYPE flags = (MINIDUMP_TYPE)(MiniDumpWithIndirectlyReferencedMemory);

BOOL dumpResult = MiniDumpWriteDump(hProcess, processId, hFile, flags,
&exceptionInformation, NULL, NULL);


Match, I tried everything but could not solve!
 
Last edited:
Ok. try it..
Open codeblocks, go to menu project and then Build Options..
In left side have the following options:
TheForgottenServer
Debug Windows
Release Windows

Nice, select TheForgottenServer, and now on the right side unselect the two options selected:
Enable all compiler warnings (overrides many other settings ) [-Wall]
Enable extra compiler warnings [-Wextra]

then click Ok, and now try to compile your server again..

if i help u, dont forget rep me ;D
 
What do you sent did do, plus gave the same mistakes yet!

Code:
exception.cpp|133|error: 'MINIDUMP_EXCEPTION_INFORMATION' was not declared in this scope|
exception.cpp|133|error: expected ';' before 'exceptionInformation'|
exception.cpp|134|error: 'exceptionInformation' was not declared in this scope|
exception.cpp|141|error: 'MINIDUMP_TYPE' was not declared in this scope|
exception.cpp|141|error: expected ';' before 'flags'|
exception.cpp|143|error: 'flags' was not declared in this scope|
exception.cpp|144|error: 'MiniDumpWriteDump' was not declared in this scope|
||=== Build finished: 7 errors, 0 warnings ===|
 
Do not quite understand these things, but I think the version of the sources is 0.4

Code:
#include <windows.h>

A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "TheForgottenServer.ico"

1 VERSIONINFO
FILEVERSION 0,4,0,0
PRODUCTVERSION 0,4,0,0
FILETYPE VFT_APP
{
  BLOCK "StringFileInfo"
	 {
		 BLOCK "040904E2"
		 {
			 VALUE "CompanyName", "OtLand.net"
			 VALUE "FileVersion", "0.4"
			 VALUE "FileDescription", "The Forgotten Server"
			 VALUE "InternalName", ""
			 VALUE "LegalCopyright", ""
			 VALUE "LegalTrademarks", ""
			 VALUE "OriginalFilename", "The Forgotten Server.exe"
			 VALUE "ProductName", "The Forgotten Server"
			 VALUE "ProductVersion", "0.4"
		 }
	 }
  BLOCK "VarFileInfo"
	 {
		 VALUE "Translation", 0x0409, 1250
	 }
}
 
Back
Top