Error from including CyLib.h

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
HuEl_264296
Level 5
Level 5
First like given 25 sign-ins First solution authored

Hi all,

   

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

   

SYMBOL:  P

   

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?

   

 

   

Many thanks

   

Hugo

0 Likes
1 Reply
KishoreS_96
Employee
Employee
5 sign-ins 50 replies posted 25 replies posted

 Hi,

   

 

   

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?

   

 

   

Regards,

   

Kishore.

0 Likes