This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can keil compiled library be used in segger embedded studio?

dear all 

    Can keil compiled library be used in segger embedded studio? For example, I have a paw8001_ ofn114009_ 12_ m4f_ keil.lib

Library, can I put it directly into NRF connect SDK project to compile?

Best Regards

Parents Reply
  • hi 

    I put the config_ COMPILER_ Opt = - LM "into my pri.conf, the problem still exists, But there's one amazing thing,When I put the following code in *. C,Even though I don't make any calls。The compilation is successful。

    It looks like there's something wrong with the compiler。

    #include <math.h>

    #if(1)
    int compare(const void *, const void *);
    void test(void)
    {
    const char *a[10] = {"enter", "number", "size", "begin", "of", "cat", "case","program","certain","a"};
    float op;
    float result;
    op = 0.08;
    result= sqrtf(op);
    result= log10f(op);
    result= expf(op);
    result= cosf(op);
    qsort(a, 10, sizeof(a[0]), compare);
    result= tanf(op);
    result= sinf(op);
    result= logf(op);
    }

    int compare(const void *c, const void *d)
    {
    int m,n,r;
    char **a, **b; // !!
    a = (char **)c;
    b = (char **)d;
    m = strlen(*a);
    n = strlen(*b);
    r = m - n;
    if (r != 0)
    return r; 
    return memcmp(*a,*b,m); 
    }
    #endif

    best regards

Children
Related