Re: unresolved external symbol when building on Windows

From: Andy Y <kingofhearts168(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: unresolved external symbol when building on Windows
Date: 2023-02-15 11:01:36
Message-ID: CAEN8pBp_2O37UaG1TMjJdw7vO_Jh_V19dBAC=fiasmr74iiBdQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Problem resolved. It is due to library machine type conflict: x64 vs x86.

On Wed, Feb 15, 2023 at 6:00 PM King of Hearts <kingofhearts168(at)gmail(dot)com>
wrote:

> I got a bunch of errors like below when building from source on Windows.
> My python version is 3.11. No change if I switch to 3.9. Would
> appreciate any pointer. -- Andy
>
> "C:\Users\test\source\repos\postgresql\pgsql.sln" (default target) (1) ->
> "C:\Users\test\source\repos\postgresql\plpython3.vcxproj" (default target)
> (74) ->(Link target) ->
> plpy_cursorobject.obj : error LNK2019: unresolved external symbol
> __imp__PyExc_StopIteration referenced in function _PLy_cursor_plan
> [C:\Users\test\source\repos\postgresql\plpython3.vcxproj]
> ...
> plpy_util.obj : error LNK2019: unresolved external symbol
> __imp__PyUnicode_FromStringAndSize referenced in function
> _PLyUnicode_FromString
> [C:\Users\test\source\repos\postgresql\plpython3.vcxproj]
> plpy_util.obj : error LNK2019: unresolved external symbol
> __imp__PyUnicode_FromString referenced in function _PLyUnicode_FromString
> [C:\Users\test\source\repos\postgresql\plpython3.vcxproj]
> plpy_util.obj : error LNK2019: unresolved external symbol
> __imp__PyUnicode_AsUTF8String referenced in function _PLyUnicode_Bytes
> [C:\Users\test\source\repos\postgresql\plpython3.vcxproj]
> .\Release\plpython3\plpython3.dll : fatal error LNK1120: 76 unresolved
> externals [C:\Users\test\source\repos\postgresql\plpython3.vcxproj]
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2023-02-15 16:17:31 Re: Query plan for "id IS NULL" on PK
Previous Message King of Hearts 2023-02-15 10:00:21 unresolved external symbol when building on Windows