Hi, I have done some I2C/SMBUS routines that handle the communication, I've saved it as SMBUS_API.c and I've also created the SMBUS_API.h wich has the prototype definitions. I also have a EEPROM_API.c wich has a lot of functions to access SMBUS serial EEPROM. Now in my test.c file, I've added the EEPROM.h and SMBUS.h. I've also specified to the linker to LINK the Test.obj, EEPROM_API.obj and SMBUS_API.obj. But I get a L104 link error. MULTIPLE PUBLIC DEFINITIONS What am I doing wrong ? What is the good method to link files between them ?
The Linker message tells you what symbols have multiple definitions, and where those definitions are. You probably have definitions in your header files, instead of just declarations...
View all questions in Keil forum