2

Is it possible to call IronPython functions (and get access to their return values), from C/C++ code, without .NET? And if yes, how?

Is an embedding approach as in the python-c-api possible (i.e. as described here: http://docs.python.org/2/extending/embedding.html)?.

In our project, we cannot depend on .NET. However, we'd like to interact with other software, which exposes its interface through IronPython.

c_k
  • 1,746
  • 1
  • 20
  • 35

1 Answers1

4

The only way to do it would be to host the .NET runtime or embed Mono in your C++ application, and then run IronPython inside of the embedded CLR. IronPython requires a CLR implementation; there's simply no way around that.

Community
  • 1
  • 1
Jeff Hardy
  • 7,632
  • 24
  • 24