I would like to use CyDelay() from a .c file in my project. So I #included CyLib.h. But this causes the error:
Error: L104 MULTIPLE PUBLIC DEFINITIONS
MODULE: E:\Repositories\Parts\GPS_Tracker_2\GPS_Tracker_PSoC\GPS_Tracker_PSoC.cydsn\DP8051-Keil_Generic\Debug\GPS.OBJ (GPS)
DEFINED: E:\Repositories\Parts\GPS_Tracker_2\GPS_Tracker_PSoC\GPS_Tracker_PSoC.cydsn\DP8051-Keil_Generic\Debug\GM862GPS.OBJ (GM862GPS)
How can I use CyDelay() without causing this error?
You don't need to add CyLib.h file in the main.c file for using the Delay function. You can use CyDelay() function where ever you want to use. If you are still getting any errors, Can you please attach your project file?