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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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