Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #3167

Re: looking for libpython31.a 64bit (missing from python-3.1.3.amd64.msi)

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!news.wiretrip.org!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <conathan@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; '"if': 0.04; 'wed,': 0.04; 'bits': 0.07; 'python': 0.07; 'define,': 0.09; 'gcc': 0.09; 'subject:missing': 0.09; 'typedef': 0.09; 'pm,': 0.11; 'am,': 0.14; 'wrote:': 0.14; 'subject:python': 0.15; 'defined': 0.15; 'library': 0.15; 'bits).': 0.16; 'bits,': 0.16; 'neat': 0.16; 'pointers': 0.16; '(i.e.': 0.18; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'cheers,': 0.20; 'header:In-Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'thu,': 0.22; '(without': 0.23; 'url:wiki': 0.24; 'received:209.85.220': 0.26; 'instead': 0.26; 'david': 0.27; 'message-id:@mail.gmail.com': 0.28; 'looks': 0.28; '(even': 0.29; 'note,': 0.29; 'yet': 0.30; "won't": 0.30; 'cc:addr:python.org': 0.31; 'import': 0.32; 'headers': 0.33; 'actually': 0.34; 'there': 0.35; 'yet,': 0.35; 'usually': 0.36; 'case,': 0.36; 'received:209.85': 0.37; 'apr': 0.38; 'pst': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'url:org': 0.38; 'stable': 0.39; 'subject: (': 0.39; 'received:209': 0.39; 'works': 0.40; 'header:Received:5': 0.40; '13,': 0.60; '2011': 0.62; 'link': 0.62; '------': 0.65; 'british': 0.77; 'subject:looking': 0.77; 'columbia,': 0.84; 'nathan': 0.84; 'trick,': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=hMdvjABosRD90VzjYd2EgsRiUeGUuWF/iSolMDsH0uU=; b=lNRpWs96O1fpxJc+wbuANr/JocZys8sO2MVHBIE87/2hg8x0f+V3rSaPGQpHxPexaA esaCf/BJo84dobFzW3fUzExsl6AQ4IqClXalKlNHuN3mRDQYnjGjCoPzi5Dj4sCgi4Vy 9ZAgOrgwyJC9751cQbC+/sc2UB5izBF8eLa28=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=e0QOIcA7tZkUYGadfhOWTAKZD9BwKlONpuOYB6lOQIlhSq3JPNckUbxEl7WM/QhJWG YfxKTWQ/AZ7pXmmToHQ/Pjo++UCtb6F0FO6xr9lUpOUxghLAWPJhAH3wfGjML2ftSCME AJAIlmAvdFwOc0AJKlFxKuLpf7TAxWI8meXzk=
MIME-Version 1.0
In-Reply-To <BANLkTimHpZ1jZ711S6_A5bPFZ2C69Qqfew@mail.gmail.com>
References <BANLkTin6W64V30CtFXyT8AZTt2U-nZ1YcA@mail.gmail.com> <BANLkTi=CW4LMmUYr6k=wxZUwMSgweoS-Pw@mail.gmail.com> <BANLkTi=U18x0fqnyDgNFChqUZS=BEsxVsA@mail.gmail.com> <BANLkTimHpZ1jZ711S6_A5bPFZ2C69Qqfew@mail.gmail.com>
Date Wed, 13 Apr 2011 20:35:33 -0700
Subject Re: looking for libpython31.a 64bit (missing from python-3.1.3.amd64.msi)
From Nathan Coulson <conathan@gmail.com>
To David Cournapeau <cournape@gmail.com>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.342.1302752136.9059.python-list@python.org> (permalink)
Lines 41
NNTP-Posting-Host 82.94.164.166
X-Trace 1302752136 news.xs4all.nl 41103 [::ffff:82.94.164.166]:43572
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:3167

Show key headers only | View raw


On Wed, Apr 13, 2011 at 7:53 PM, David Cournapeau <cournape@gmail.com> wrote:
> On Thu, Apr 14, 2011 at 11:28 AM, Nathan Coulson <conathan@gmail.com> wrote:
>
>> actually figured out a neat trick,  mingw-w64 can link directly to the .dll.
>> gcc file.c python31.dll -o file.exe
>>
>> no .a needed.
>>
>> http://www.mingw.org/wiki/sampleDLL
>>
>> (have yet to find out if it actually works yet, but so far looks promising)
>
> Note the "If this method works for your application then there is
> usually no need for an import library.". Whether it works or not is
> often found the hard way (i.e. you won't have a linking error, but
> subtle bugs). Building a .a library is more stable in my experience
> (even in 32 bits).
>
> In any case, note the  -DMS_WIN64 which is mandatory if you want to
> make it work (without this define, mingw will use the python headers
> for 32 bits, with pointers typedef defined for 32 bits pointers
> instead of 64 bits, which will not work very well :) ).
>
> cheers,
>
> David

very good note,  had no clue.



-- 
Nathan Coulson (conathan)
------
Location: British Columbia, Canada
Timezone: PST (-8)
Webpage: http://www.nathancoulson.com

Back to comp.lang.python | Previous | Next | Find similar


Thread

Re: looking for libpython31.a 64bit (missing from python-3.1.3.amd64.msi) Nathan Coulson <conathan@gmail.com> - 2011-04-13 20:35 -0700

csiph-web