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

Barry Scott barry at barrys-emacs.org
Sat Nov 13 05:10:47 EST 2021



> 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