Undefined reference - despite lib being found by linker

后端 未结 4 2004
我在风中等你
我在风中等你 2020-12-28 20:32

I have a trivial program to test for availability of python development files:

#include
int main(){Py_Initialize(); Py_Finalize(); }
<         


        
4条回答
  •  旧巷少年郎
    2020-12-28 20:55

    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.

提交回复
热议问题