We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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); } }
"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/