Original Post
I''ve read the python documentation and i think i know how to run python scripts from within my c++ programs, but i cant get it compiled...
Actually, it does compile fine, but the linker tells me something along the lines of "undefined refference to Py_Initialize"
I added the python21.lib to my project but it doesnt make one bit of difference.
Im using Dev-C++ 4 and usually i use .a files for libraries (libSDL.a, libOpengl32.a etc) and the documentation assumes you use MSVC on windows, so can Dev-C++ not use .lib''s or what?
Or should i be using a different library file, if so where do i get it? I''ve searched the docs, the python website and tried google but can''t find anything.
Someone else must have got this working before... any help would be greatly appreciated. Thanks in advance.