Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Reply-To: From: "Norman Vine" To: "=?iso-8859-1?Q?'Jochen_K=FCpper'?=" Cc: "'Cygwin'" Subject: RE: [SciPy-dev] SciPy on Cygwin Date: Fri, 28 Sep 2001 13:45:58 -0400 Message-ID: <002301c14845$6f5577a0$a300a8c0@nhv> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2232.26 In-Reply-To: <86g097pgqt.fsf@bock.chem.unc.edu> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal Jochen Küpper writes: > >>>>>> Jason Tishler wrote on Thu, 27 Sep 2001 16:48:48 -0400: > >Jason> The usually solution to the above kind of errors is the >Jason> following: > >Jason> http://www.python.org/doc/FAQ.html#3.24 > > >Running into the next problem is the definition of PyFortran_Type in >fortranmodule.h, I changed in the following way: > >- no global initialization: > >PyTypeObject PyFortran_Type; > > >- created this function in fortranmodule.c, added declaration to >fortranmodule.h and call it from initflapack: > >void fortranobject_init(void) { > PyFortran_Type = (PyTypeObject){ SEE the link Jason pointed you to above for why this line is what I believe is causing your problem ! FYI I am looking at the f2py source and can see how to fix the DL_EXPORT() problem but I have yet to see any easy fix for this one yet. You could try hand patching this as outlined in above link, Note you will need to substitute DL_EXPORT(void) for the void signature of the python modules initMODULENAME() function too. Cheers Norman Vine -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/