Skip to main content
Gustav Andersson
Associate II
April 26, 2017
Solved

SPC560Bxx OSAL component in C++

  • April 26, 2017
  • 1 reply
  • 883 views
Posted on April 26, 2017 at 10:37

The 'SPC560Bxx OSAL Component RLA' 1.0.201704140929 doesn't work with C++ since the extern 'C'-block isn't closed in osal.h and systimer.h

#spc5studio #c++
    This topic has been closed for replies.
    Best answer by procolo
    Posted on May 02, 2017 at 10:21

    Hi,

    many thanks for the feedback. We'll fix this issue for next SPC5studio release.

    meanwhile (but I think you have already did it) adding the following lines at the end of function declaration

    in systimer,h and osal.h will let you compile without errors:

    #ifdef __cplusplus

    }

    #endif

    Regards,

    Procolo 

    1 reply

    procolo
    procoloBest answer
    Visitor II
    May 2, 2017
    Posted on May 02, 2017 at 10:21

    Hi,

    many thanks for the feedback. We'll fix this issue for next SPC5studio release.

    meanwhile (but I think you have already did it) adding the following lines at the end of function declaration

    in systimer,h and osal.h will let you compile without errors:

    #ifdef __cplusplus

    }

    #endif

    Regards,

    Procolo