1 Reply Latest reply on Dec 12, 2010 8:55 PM by kiku

    Error from including CyLib.h

    user_62720120

      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

        • 1. Re: Error from including CyLib.h
          kiku

           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.