Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Reply-To: <nhv@cape.com>
From: "Norman Vine" <nhv@cape.com>
To: "=?iso-8859-1?Q?'Jochen_K=FCpper'?=" <jochen@jochen-kuepper.de>
Cc: "'Cygwin'" <cygwin@cygwin.com>
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/

