This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

File fp* error

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

0