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

Marco Sulla Marco.Sulla.Python at gmail.com
Sat Nov 13 06:17:54 EST 2021


..... Sorry, the problem is I downloaded the 32 bit version of VS
compiler and 64 bit version of Python......

On Sat, 13 Nov 2021 at 11:10, Barry Scott <barry at barrys-emacs.org> wrote:
>
>
>
> > On 13 Nov 2021, at 09:00, Barry <barry at barrys-emacs.org> wrote:
> >
> >
> >
> >> On 12 Nov 2021, at 22:53, Marco Sulla <Marco.Sulla.Python at 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
>


More information about the Python-list mailing list