delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/11/13:44:54

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Gerald S. Williams" <gsw AT agere DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Re: "Best" way to build a DLL?
Date: Mon, 11 Feb 2002 13:44:01 -0500
Message-ID: <GBEGLOMMCLDACBPKDIHFEEPHCGAA.gsw@agere.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Importance: Normal
In-Reply-To: <GBEGLOMMCLDACBPKDIHFMEPFCGAA.gsw@agere.com>

>   Warning: resolving __Py_NoneStruct by linking to \
>   __imp___Py_NoneStruct (auto-import)
>   Warning: resolving _PyInt_Type by linking to \
>   __imp__PyInt_Type (auto-import)

I poked around a bit and found out that those "Warnings"
were actually indicating that global variables were being
linked by the auto-importer.

When you link to the DLL directly, you get seg faults if
you refer to those variables. (I guess I *was* lucky--I
hadn't seen this since I hadn't executed the code making
those references). I had to change my builds to use the
import library in order to eliminate the seg faults when
referring to those variables.

It looks like you can use just GCC, though. Chuck Wilson's
C example in dllhelpers-0.40.0 bears this out, and shows
how to create an import library at the same time without
the need for a .def file (using -Wl,--out-implib and
-Wl,--export-all-symbols).

I'm not sure why those are reported as warnings. Is there
an easy way to disable them?

-Jerry

-O Gerald S. Williams, 22Y-103GA : mailto:gsw AT agere DOT com O-
-O AGERE SYSTEMS, 555 UNION BLVD : office:610-712-8661  O-
-O ALLENTOWN, PA, USA 18109-3286 : mobile:908-672-7592  O-


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019