I used a new compiler such Dev-Cpp 5.11, please help my mistakes

An error occurred 22 35 E:\FAT\dev64-samples-master\fat32\include\hdd\mbr.h [Error] expected specifier-qualifier-list before '/' token compilation terminated due to -Wfatal-errors.



Here here here
typedef struct {
char code[446]; // MBR boot code
HDD_PARTITION_T partition[4]; // partition table
UINT16 signature; // MBR signature
} HDD_MBR_T;

In the line of har code [446];


This new compiler is for me, I'm in the game development it was not used to it myself.

What does this error?
Last edited on
More code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  #ifndef _HDD_MBR_H_
#define _HDD_MBR_H_

#include <win32/types.h>

#ifdef __cplusplus
  extern "C" {
#endif

#pragma pack(push,1)

typedef struct {
  UINT8 active;
  UINT8 chs_first[3];
  UINT8 type;
  UINT8 chs_last[3];
  UINT32 lba_start;
  UINT32 lba_end;
} HDD_PARTITION_T;

typedef struct {
  char code[446];                 // MBR boot code
  HDD_PARTITION_T partition[4];   // partition table
  UINT16 signature;               // MBR signature
} HDD_MBR_T;

typedef struct {
  HANDLE handle;             // device handle (for read/write functions)
  UINT32 lbaStart;           // boot sector lba start address
  UINT32 lbaEnd;             // boot sector lba end address
  UINT8  deviceId;           // the windows device id for open function
} HDD_CB_T;

#pragma pack(pop)

#ifdef __cplusplus
  }
#endif


#endif   


I do not even know how the error is formed, it is taken from reason
Topic archived. No new replies allowed.