I have a trivial program to test for availability of python development files:
#include int main(){Py_Initialize(); Py_Finalize(); } <
#include int main(){Py_Initialize(); Py_Finalize(); }
I encountered the same linking problem and personally my problem was that my 32 bit mingw compiler can't load 64 bit python library. I upgrade my mingw to 64 bit and solved my problem. Left a note here in case someone newbie stuck into same problem.