Kjbuckets-Module, Python 1.6 and NT

spex66 at my-deja.com spex66 at my-deja.com
Tue Jun 20 13:14:17 EDT 2000


Hi James,

----- Original Message -----
In article <394F6E92.42AD72B9 at interet.com>,
  "James C. Ahlstrom" <jim at interet.com> wrote:
From: James C. Ahlstrom <jim at interet.com>
Newsgroups: comp.lang.python
Sent: Tuesday, June 20, 2000 3:16 PM
Subject: Re: Kjbuckets-Module, Python 1.6 and NT


>
> Use the compiler switch to compile as a C++ module.  Be sure to
> declare initkjbuckets() as an exported symbol with declspec().
>
this was the missing puzzle tile!!!

this code works for me (with the one I posted as answer to Robert Kern
today):
__declspec(dllexport) void initkjbuckets()
{
  initmodule("kjbuckets", kjbuckets_methods);
}


permanent working with SWIG isn't helpful if you are faced with such
code :> (but I have copied the decl-piece out of it)

thanks
Peter Arwanitis
(=PA=)


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list