While working on a project, I encountered this error (Syntax error: '{' missing before __fastcall.) on the following line of code:
The first thing I tried to do was checking if there was a missing ';' in utils.h or some sort of syntax error that caused the problem, no luck: everything seems ok.
Then I checked if there were syntax errors somewhere else in the code when ModGetPEB() gets called: again none.
Unless someone has a better idea, I might go line per line in the code to find the syntax error, I don't want to because the program is pretty big and this is like finding a needle in a soccer pitch.
Code
#ifndef _MODULES_H_
#define _MODULES_H_
#include "definizioni.h"
#include "utils.h"
PPEB __fastcall ModGetPEB(); // <- the faulty line of code
long long __fastcall ModGetBase(wchar_t mName);
wchar_t __fastcall ModGetPath(wchar_t mName);
long long __fastcall ModGetFunc(long long ModBase, BYTE FuncName);
#endif // !_MODULES_H_The first thing I tried to do was checking if there was a missing ';' in utils.h or some sort of syntax error that caused the problem, no luck: everything seems ok.
Then I checked if there were syntax errors somewhere else in the code when ModGetPEB() gets called: again none.
Unless someone has a better idea, I might go line per line in the code to find the syntax error, I don't want to because the program is pretty big and this is like finding a needle in a soccer pitch.

