all
I have a few problems with using structures.
The source is shown below.
main.c
#include <stdio.h>
#include "info.h"
_Rbuffer Rb;
void write(_Rbuffer Rb *rb)
{
    printf("write function\n");
}
void main(void)
{
    printf("Hello World\n");
}
info.h
#include <stdint.h>
typedef struct
{
    uint8_t Button1;
} _Rbuffer;
extern _Rbuffer Rb;
When compiling, the following error occurs.
root@test-VirtualBox:~/sample# gcc main.c
main.c:6:24: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
 void write(_Rbuffer Rb *rb)
                        ^  
root@test-VirtualBox:~/sample# 
I am currently unable to change info.h.
I declare a structure and I do not know why an error occurs.
How do I fix this?
 
     
     
    