Call a foreign-language function: Difference between revisions
m
→Python
m (→{{header|Ol}}) |
m (→Python) |
||
Line 281:
===Python===
'''IMPORTANT''' : The following implementation has been tested against Python 2.7, this won't work on a system which does not have the relevant files installed. Also pay attention to the compilation flags.
<lang C>#include <python2.7/Python.h>
int main()
Line 297 ⟶ 296:
Py_Finalize();
return 0;
}</lang>▼
▲</lang>
'''Compilation''' : Change 2.7 and relevant paths for a different Python version / different install location
<pre>
|