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

fopen error in uvision3

Hi all

when I run the below program i am getting the error
*** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL

could any suggest me how to remove the error?

looking for your help
t.senthil

#include <ARTX.h>
#include <stdio.h>
void tst_fopen();

void main()
{
tst_fopen();
}

void tst_fopen (void) {
   FILE *fin;

   fin = fopen ("Test.txt","r");
   if (fin == NULL) {
      printf ("File not found!\n");
   }
   else {
      // process file content
      fclose (fin);
   }
}

Parents
  • "yes I am having the ARTX.h ARTX_Config.c and ARTX_Config.h files"

    The error messages tell you that the functions you are missing are: fopen, fprintf, and fclose.

    Do you have definitions for those functions anywhere in your source code?
    Probably not.

    Probably, they are in a Library that forms part of the ARTX Product. if so, you need to include this Library in your project (or select suitable project options that will cause it to be included).
    Once again, the Manual will tell you how to do this.

    http://www.keil.com/ararm/

Reply
  • "yes I am having the ARTX.h ARTX_Config.c and ARTX_Config.h files"

    The error messages tell you that the functions you are missing are: fopen, fprintf, and fclose.

    Do you have definitions for those functions anywhere in your source code?
    Probably not.

    Probably, they are in a Library that forms part of the ARTX Product. if so, you need to include this Library in your project (or select suitable project options that will cause it to be included).
    Once again, the Manual will tell you how to do this.

    http://www.keil.com/ararm/

Children
No data