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 Friends, I'm currently working on C51v6.02 by Keil, My Problem goes like this: I have a project which has the files file1.c, file2.c, file3.c. And header files header1.h, header2.h, header3.h. The source code of file1.c goes like this.
#include "header1.h" #include "header2.h" /* My code */
#include "header1.h" #include "header3.h" /* My code */
*** ERROR L104: MULTIPLE PUBLIC DEFINITIONS SYMBOL: VARIABLE_NAME MODULE: File_Name.obj (FILE_NAME)
#ifndef __HEADER1_H__ #define __HEADER1_H__ /* My Code */ /* Also includes variables */ #endif
Proudly wasting time since 1981
you probably have some name (see error message) included in all header files. This often happens when the .h includes another .h Erik