Hi I usually programme in Python. In the help files, theres an example on how to embed Python into a C command-line app.
How ever when I try it I get many errors.
Code:#include <Python.h> int main(int argc, char *argv[]) { Py_Initialize(); PyRun_SimpleString("from time import time,ctime\n" "print 'Today is',ctime(time())\n"); Py_Finalize(); return 0; }So I searched a lot. I finnaly found the answer. It said that the linker cant find the PythonI get the error "undefined referrence to imp_py_finalize"
library file. So I copied that file to my Lib folder. Now I get this error
I'm using Dev-Cpp as my IDE and the GCC version that comes with Dev-Cpp."gcc: -lobjc: linker input file unused since linking not done"
Please help!