1 Reply Latest reply on Jan 15, 2017 6:48 PM by OceanS_76

    64-bit division in SDK 2.X.X

    filipp.shpomer_1849816

      Hi,

       

      I keep getting this linker error whenever I attempt to divide two 64-bit integers:

      undefined reference to `__aeabi_ldivmod'

      I tried using INT64 instead, with the same result.

       

      Code:

      #ifndef _MY_TEST_H_

      #define _MY_TEST_H_

       

      long long my_test_divide(long long dividend, long long divisor)

      {

          return dividend / divisor;

      }

       

      #endif//_MY_TEST_H_

       

      I found a similar question on the forum, but it was not answered. My WICED Smart SDK version is 2.2.3.