error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token in C
问题 I have the following declarations FILE *fptr; FILE *optr; in algo.h I have the main in main.c which opens these files. I get the above error if I put the declarations in the header file. If I put it in the main.c, then I get mutiple definition errors like src\main.o:main.c:(.bss+0xc88): multiple definition of rcount' src\new_algo.o:new_algo.c:(.bss+0xc88): first defined here src\main.o:main.c:(.bss+0xc8c): multiple definition of condi' src\new_algo.o:new_algo.c:(.bss+0xc8c): first defined