dugsong / pypcap

Automatically exported from code.google.com/p/pypcap
Other
117 stars 45 forks source link

undefinded refrences. for python.h function #54

Open dav-sap opened 7 years ago

dav-sap commented 7 years ago

while building i get these error:

build\temp.win-amd64-2.7\Release\pcap.o:pcap.c:(.text+0x58f1): undefined reference to _imp__PyObject_SetAttr' build\temp.win-amd64-2.7\Release\pcap.o:pcap.c:(.text+0x5962): undefined reference to_imp_Py_NoneStruct' build\temp.win-amd64-2.7\Release\pcap.o:pcap.c:(.text+0x5977): undefined reference to _imp__PyInt_FromLong' build\temp.win-amd64-2.7\Release\pcap.o:pcap.c:(.text+0x59a5): undefined reference toimpPy_TrueStruct' build\temp.win-amd64-2.7\Release\pcap.o:pcap.c:(.text+0x59ba): undefined reference to _imp__PyInt_FromLong' build\temp.win-amd64-2.7\Release\pcap.o:pcap.c:(.text+0x59e2): undefined reference to_imp_Py_ZeroStruct' build\temp.win-amd64-2.7\Release\pcap.o:pcap.c:(.text+0x59f7): undefined reference to _imp__PyInt_FromLong' build\temp.win-amd64-2.7\Release\pcap.o:pcap.c:(.text+0x5a22): undefined reference toimpPy_TrueStruct'

and there a lot more of those.

however at the make line before these errors i see this make line: c:\MinGW\bin\gcc.exe -shared -s build\temp.win-amd64-2.7\Release\pcap.o build\temp.win-amd64-2.7\Release\pcap_ex.o build\temp.win-amd64-2.7\Release\pcap.def -L..\WpdPack\lib -LC:\Python27\libs -LC:\Python27\PCbuild\amd64 -LC:\Python27\PC\VS9.0\amd64 -lwpcap -liphlpapi -lpython27 -lmsvcr90 -o build\lib.win-amd64-2.7\pcap.pyd

and the lib libpython27.a exists in C:\Python27\libs. So what is going on?

I have been on this installation for 2 days already!

Thanks