Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Most public domain software is free, at least at first glance.


devel / comp.lang.python / Re: Unable to compile my C Extension on Windows: unresolved external link errors

SubjectAuthor
o Re: Unable to compile my C Extension on Windows: unresolved externalBarry Scott

1
Re: Unable to compile my C Extension on Windows: unresolved external link errors

<mailman.4.1636798257.19479.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=15975&group=comp.lang.python#15975

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: bar...@barrys-emacs.org (Barry Scott)
Newsgroups: comp.lang.python
Subject: Re: Unable to compile my C Extension on Windows: unresolved external
link errors
Date: Sat, 13 Nov 2021 10:10:47 +0000
Lines: 35
Message-ID: <mailman.4.1636798257.19479.python-list@python.org>
References: <CABbU2U_uEeA+0mE0FygzicOhnqS3wNb75rk3gSPPjgU-DHJnHg@mail.gmail.com>
<2DA56A2E-EA0E-42B7-832E-EF09C1CF162B@barrys-emacs.org>
<1D6456BF-AA3F-425A-AF2B-3E66A0868BA3@barrys-emacs.org>
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\))
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de vUqyw0C06PEfin9SxmWRygtsd3hM2eilg/M/RIwRHxPw==
Return-Path: <barry@barrys-emacs.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Unable': 0.03;
'def': 0.04; 'subject:Windows': 0.07; 'cc:addr:python-list': 0.09;
'from:addr:barry': 0.09; 'received:217.70': 0.09;
'received:217.70.178': 0.09; 'received:gandi.net': 0.09;
'received:mail.gandi.net': 0.09; 'utility': 0.09; 'barry': 0.16;
'cc:name:python list': 0.16; 'dll': 0.16; 'from:addr:barrys-
emacs.org': 0.16; 'from:name:barry scott': 0.16; 'message-id
:@barrys-emacs.org': 0.16; 'x-mailer:apple mail
(2.3654.120.0.1.13)': 0.16; 'wrote:': 0.16; 'solve': 0.19;
'cc:addr:python.org': 0.20; 'code': 0.23; 'cc:2**0': 0.25;
'seems': 0.26; 'think': 0.32; "doesn't": 0.32; 'windows': 0.34;
'header:In-Reply-To:1': 0.34; 'source': 0.36; 'this.': 0.37;
'file': 0.38; 'put': 0.38; 'read': 0.38; 'enough': 0.39; 'use':
0.39; 'internal': 0.63; 'clear': 0.64; 'tool': 0.65; 'listed':
0.67; 'received:217': 0.67; 'right': 0.68; 'chain': 0.76;
'exposed': 0.76; 'subject: \n ': 0.84; 'subject:link': 0.84;
'sulla': 0.84
In-Reply-To: <2DA56A2E-EA0E-42B7-832E-EF09C1CF162B@barrys-emacs.org>
X-Mailer: Apple Mail (2.3654.120.0.1.13)
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.37
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://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: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <1D6456BF-AA3F-425A-AF2B-3E66A0868BA3@barrys-emacs.org>
X-Mailman-Original-References: <CABbU2U_uEeA+0mE0FygzicOhnqS3wNb75rk3gSPPjgU-DHJnHg@mail.gmail.com>
<2DA56A2E-EA0E-42B7-832E-EF09C1CF162B@barrys-emacs.org>
 by: Barry Scott - Sat, 13 Nov 2021 10:10 UTC

> On 13 Nov 2021, at 09:00, Barry <barry@barrys-emacs.org> wrote:
>
>
>
>> On 12 Nov 2021, at 22:53, Marco Sulla <Marco.Sulla.Python@gmail.com> wrote:
>>
>> It seems that on Windows it doesn't find python3.lib,
>> even if I put it in the path. So I get the `unresolved external link`
>> errors.
>
> I think you need the python310.lib (not sure of file name) to get to the internal symbols.

Another thing that you will need to check is that the symbols you are after have been
exposed in the DLL at all. Being external in the source is not enough they also have to
listed in the .DLL's def file ( is that the right term?) as well.

If its not clear yet, you are going to have to read a lot or source code and understand
the tool chain used on Windows to solve this.

>
> You can use the objdump(?) utility to check that the symbols are in the lib.
>
> Barry

Barry

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor