Skip to content

Trouble linking #2

@jamesd256

Description

@jamesd256

Hi,

I am testing out your statically compiled interpreter, and it seems to build fine.

I have a test project I'm using to see if I can link to it, and I have this compilation error:

Error 1 error LNK2019: unresolved external symbol __imp__Py_Initialize referenced in function _main static_python_test.obj static_python_test_2

Running dumpbin /all on my generated pythonembed.lib shows that the expected symbols are there:

B297C2 _Py_Initialize

But I don't understand why the linker is looking for __imp__Py_Initialize and not _Py_Initialize.

Are you able to point me in the right direction please?

Thanks,

James

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions