4 Replies Latest reply on Mar 14, 2011 5:46 PM by gregory.whitmore

    sqrt problems with PSoC Creator and CY8C55 Family -- undefined reference to `sqrt' error

    keith.ashcraft

      All, I don't know if where this question should be asked here or PSoC Creator....but...

         

      has anybody had problems with the sqrt() function? Here is a small test code to even see if it will compile and I get a "...undefined reference to `sqrt'..." error. The example is close to the Keil help context example.

         

      Any sugestions?

         

      Keith

         

      /* ========================================
       *
       *
       * ========================================
      */
      #include <device.h>
      #include <math.h>

      float temp;
      float Vmag;

      void main()
      {
          temp = 234.5;
          Vmag = sqrt(temp);

          for(;;)
          {
          }
      }
      /* [] END OF FILE */