Hello all , I've declared a file pointer like this FILE *fp in my program and I am getting the following error. temp.C(148): error C67: 'file': undefined identifier temp.C(148): error C67: 'fp': undefined identifier temp.C(156): error C67: 'fp': undefined identifier likewise the statement fp = fopen (argv[1],"r"); gives the error below temp.C(156): warning C140: 'fopen' undefined; assuming 'extern int fopen()' i would like to know the reason for the error and how can i solve it? Thanks
You didn't say whether you are including stdio.h and if so, whether those file related declarations are inside any conditional compile clauses are enabled for your target system.