Compiling netCDFmodule on NT: Error

Hoon Yoon hyoon at bigfoot.com
Thu May 27 14:37:49 EDT 1999


Hi,

  After rediscovering compile.py by David, I am on the way to compiling
some addin modules.
  One of the things that I really want to check out is Konrad's
netCDFmodule. When I attempt to compile it, I get following error.

--------------------Configuration: netcdf - Win32
Release--------------------
Compiling...
netcdfmodule.c
H:\Python\netCDFmodule\netcdfmodule.c(780) : error C2491:
'PyNetCDFFile_Type' : definition of dllimport data not allowed
H:\Python\netCDFmodule\netcdfmodule.c(1647) : error C2491:
'PyNetCDFVariable_Type' : definition of dllimport data not allowed
Error executing cl.exe.

demo.dll - 2 error(s), 0 warning(s)
(780)----
statichere PyTypeObject PyNetCDFFile_Type = {
  PyObject_HEAD_INIT(NULL)
  0,		/*ob_size*/
  "NetCDFFile",	/*tp_name*/
  sizeof(PyNetCDFFileObject),	/*tp_basicsize*/
  0,		/*tp_itemsize*/
  /* methods */
  (destructor)PyNetCDFFileObject_dealloc, /*tp_dealloc*/
  0,			/*tp_print*/
  (getattrfunc)PyNetCDFFile_GetAttribute, /*tp_ge

(1647)
statichere PyTypeObject PyNetCDFVariable_Type = {
  PyObject_HEAD_INIT(NULL)
  0,		     /*ob_size*/
  "NetCDFVariable",  /*tp_name*/
  sizeof(PyNetCDFVariableObject),	     /*tp_basicsize*/
  0,		     /*tp_itemsize*/
  /* methods */
  (destructor)PyNetCDFVariableObject_dealloc, /*tp_dealloc*/
  0,			/*tp_print*/
  (getattrfunc)PyNetCDFVariable_GetAttribute, /*tp_getattr*/
  (setattrfunc)PyNetCDFVariable_SetAttribute, /*tp_setattr*/
  0,			/*tp_compare*/
  0,			/*tp_repr*/
  0,			/*tp_as_number*/

First of all I have no idea what statichere is, but I have it 3 places
and have two errors. If anyone have any idea what the problem is pls let
me know. I know couple of people have been trying to compile this on NT.
I think I am pretty close to it.
Thanks,

-- 

*****************************************************************************
S. Hoon Yoon (Quant) Merrill Lynch Equity Trading, 
yelled at yahoo.com hoon at bigfoot.com(w)
"Miracle is always only few standard deviations away, but so is
catastrophe."
* Expressed opinions are often my own, but NOT my employer's.
"I feel like a fugitive from the law of averages."    Mauldin
*****************************************************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vcard.vcf
Type: text/x-vcard
Size: 202 bytes
Desc: Card for Hoon Yoon
URL: <http://mail.python.org/pipermail/python-list/attachments/19990527/bd9f3da7/attachment.vcf>


More information about the Python-list mailing list