By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,050 Members | 1,020 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,050 IT Pros & Developers. It's quick & easy.

c extension works in Linux but not Windows==>?? ImportError: dynamic module does not define init function (initpeak_load)

P: n/a
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...
import peak_load

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
Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Christian Seberino wrote:
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

Jul 18 '05 #2

P: n/a
Thanks a lot.

CS
"Martin v. Lwis" <ma****@v.loewis.de> wrote in message news:<c0*************@news.t-online.com>...
Christian Seberino wrote:
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

Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.