Call a foreign-language function: Difference between revisions

m
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>
#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>
175

edits