[Python-Dev] Making a .pyd using Cygwin?
Thu, 5 Jul 2001 09:58:16 -0400
On Thu, Jul 05, 2001 at 05:23:58PM +1200, Greg Ewing wrote:
> Is it feasible to compile a Python extension module
> for Windows using Cygwin?
By the above, do you mean a Win32 or Cygwin extension module? The answer
is yes in either case. However, using Cygwin Python to build a Cygwin
extension module is more straight forward than a Win32 one. Actually,
Cygwin Python behaves the same as other Unix platforms.
> I have tried this, and the linker tells me that it can't
> export '_bss_start__', '_bss_end__', '_data_start__'
> and '_data_end__' because they're not defined.
The above is due to the fact that your extension module (i.e., DLL) is
not exporting any symbols. You can rectify this problem by adding a
DL_EXPORT macro to the definition of the module's initialization function.
See the following for an example of the solution:
BTW, the email@example.com mailing list is a more appropriate forum for
this type of question.
Director, Software Engineering Phone: 732.264.8770 x235
Dot Hill Systems Corp. Fax: 732.264.8798
82 Bethany Road, Suite 7 Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA WWW: http://www.dothill.com