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
  • Hi this is the complete error that I am getting when i buid the program.

    looking for help!
    t.senthil

    Build target 'LPC2100'
    linking...
    *** WARNING L23: UNRESOLVED EXTERNAL SYMBOLS
    *** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
    SYMBOL: fopen?T

    ADDRESS: 0000016EH
    *** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
    SYMBOL: fprintf?T
    ADDRESS: 00000182H
    *** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
    SYMBOL: fprintf?T
    ADDRESS: 00000198H
    *** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
    SYMBOL: fclose?T
    ADDRESS: 000001A4H
    Program Size: data=1168 const=34 code=444
    Target not created

Reply
  • Hi this is the complete error that I am getting when i buid the program.

    looking for help!
    t.senthil

    Build target 'LPC2100'
    linking...
    *** WARNING L23: UNRESOLVED EXTERNAL SYMBOLS
    *** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
    SYMBOL: fopen?T

    ADDRESS: 0000016EH
    *** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
    SYMBOL: fprintf?T
    ADDRESS: 00000182H
    *** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
    SYMBOL: fprintf?T
    ADDRESS: 00000198H
    *** ERROR L128: REFERENCE MADE TO UNRESOLVED EXTERNAL
    SYMBOL: fclose?T
    ADDRESS: 000001A4H
    Program Size: data=1168 const=34 code=444
    Target not created

Children