I am having a problem on compiling C source file in Visual C++ 6.0 when using FILE *. Suppose I have the following source file:
fpt = fopen("source.c", "r");
Whenever I use FILE *fpt and fopen it, I will get errors, such as:
error C2143: syntax error : missing ';' before 'type' (refer to the line of "int i")
If I change the source file's extension to "cpp" and recompile it, the problem solved. How can I keep the "c" extension and let the FILE * works in VC++?
Thanks and hope to hear from you ASAP.