c extension works in Linux but not Windows==>?? ImportError: dynamic module does not define init fun

C

Christian Seberino

I created a C extension that works in Linux great.

I tried to make a DLL of it and got an error that didn't happen in Linux...
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: dynamic module does not define init function (initpeak_load)

I can see initpeak_load in my C code!!! Linux can see it!!!

What is wrong with my DLL making skills that causes this problem??

Chris
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

Christian said:
What is wrong with my DLL making skills that causes this problem??

You did not export the symbol. The easiest way to achieve this is to
use PyMODINIT_FUNC.

To improve your DLL making skills, learn about exported symbols,
import libraries, GetProcAddress, __declspec, and .def files.

Regards,
Martin
 
C

Christian Seberino

Thanks a lot.

CS


Martin v. Löwis said:
You did not export the symbol. The easiest way to achieve this is to
use PyMODINIT_FUNC.

To improve your DLL making skills, learn about exported symbols,
import libraries, GetProcAddress, __declspec, and .def files.

Regards,
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top