Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

C++ Integration on RPI

ketchup007
2023-01-30
2023-01-31
  • ketchup007 - 2023-01-30

    Hi all,

    Is any posibility to integrate C++ files with Codesys using C-Integration Module.

    Another question is can I use this module (c-Integration) with Raspberry Pi Licence on ARM platform?

    Thanks for Yours answers
    Lukasz Lecki

     
  • Ingo

    Ingo - 2023-01-31

    Hi Ketchup ;)

    Technically, you are creating a library, which is loaded by Linux. So there is technically no such limitation. But practically you have to have a deep understanding of C and C++ to master the binding between them.

    The starting point is:
    Create one object, which implements the C interface, that is used by CODESYS. Then you create an interface header, which contains C interfaces, sourounded by eytern "C" statements. This interface can then be used, and called from the C wrapper, and builds the glue between C and C++.

    Good luck for your project.

    Cheers,
    Ingo

     

Log in to post a comment.