Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wMxLq-000TET-1D for pgsql-general@arkaria.postgresql.org; Wed, 13 May 2026 00:21:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wMxLp-006YMr-0V for pgsql-general@arkaria.postgresql.org; Wed, 13 May 2026 00:21:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wMxLo-006YMj-2T for pgsql-general@lists.postgresql.org; Wed, 13 May 2026 00:21:24 +0000 Received: from mail-yw1-x1130.google.com ([2607:f8b0:4864:20::1130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wMxLm-00000000JLH-0Y4M for pgsql-general@lists.postgresql.org; Wed, 13 May 2026 00:21:24 +0000 Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-7bf1eaba464so55243517b3.1 for ; Tue, 12 May 2026 17:21:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1778631680; cv=none; d=google.com; s=arc-20240605; b=bSddKTjzj6t0MjCpJgDAkqG40gPifhm0K6YPtA4fKYFuXUbNa07Y1DUbFJ95zo884Y uco32THUnwJ8gNIOtqGOKMkvs+TBCNg5usFaRvc05SK3OENWzcmlk6QbMaflv4paDBCR Wcq/K3Omu45INaaiBLhhJkFTnPhmOFAtxc77r73m2fl4pepwJEpn+UiihTvhfAFdWkd2 +EAaAoAFHUVpz1Rkj58AxtPfeCJvdkTDzT/jKlilIV26NyLkkP7Ou8g+2mrQXye/sWkv t55rKM8/+EhyyZilPgv5+fnvDExYIpXwvHq1oPNZ379Xdkdi+Xa5bdnib2qluzKFyeLW 2EWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=AIyUxugO8q0LQuli0VpPrmYIm+r1fmZ6+1TgrZfql4M=; fh=xBf723vKtoVNM9Vu4Q2JI2N8bTVz6cGesqnYlEyaNGU=; b=Q0BACyt8Io1wTxnu2i0Ev1ijnKjcl406crUltQaZjRdPtLXt51gafFPSBv2ROHb2l3 BX2E/m/oAPrMnyj2I62tVGpEqjSFmEeWOVVBnz84cxbQfYZTenh0yklZaUtLwOLUa7oy wJMKMO8GkR2GCn9K8LMBWp/pY5ckGFop2rGmjhFi2vsgTtlKsE9p3xHo+O2genKUTONg m33ZuWR6SY6XNy37Uew2NPQ1e+eQc3wLFqH2QayVjNiedDSUFXSOnjN+qNVqHp4SNz4w fDeJkbNxyJ9m0g2HETLf2Z1zLawFcnlu8/2E259qsSgLXlTZ7JNijvY+myLKfKDOdVSs GJMg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778631680; x=1779236480; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AIyUxugO8q0LQuli0VpPrmYIm+r1fmZ6+1TgrZfql4M=; b=nvVFYOH9sd+2hRT3iMMvmyJOj/CEHQe3U2PClQfaYR3gPefddMhEQ4kYooZr17VDbN a/YzBhelaAa6Iv1S9GR+uBiUpwz7R3mLxGxyHPKjCiXFwe15PBaAimyS4SPu+aeFj+A8 kqFBQwUlbU23+IDRjJ2ZNb20ovkLpgMQAP60ktnPM5BCDTFE4jFH0p/ma2euuk/WJgf3 Lnly96ZivU+rQTh4WravtXApgM6VA03ZmfTtO8hmIRx0GxkyBah6S/0/RacnGhQs2e5Q bD+n0wElWrGO3Rq4K2OaFPVRWzbO9aaW6cC8maFNggIxBp623bC5tM/ypOfghtMxwpC8 1hcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778631680; x=1779236480; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=AIyUxugO8q0LQuli0VpPrmYIm+r1fmZ6+1TgrZfql4M=; b=icW4PP0DvoUrxnOdjF5p9Do34A58za635UYaudO+U4IVib3L3Bq+Oe1Gq1hhsiYfeH IqPNhJQ5PC96X0dzzxhB5vqjP1dc9THhuBiD1LqxLzim40F3wL/4yHUnZUATqOYyukBW UqrMbX7UTc7LlmsPvnJb80cz5LHt235u5RKjDqNMST3gFTn4sfZhwupwgh0Cds3RXnPt 2mhiG2p+BKFBCAxyuAR7Ti/dH37hFNadAf6RQl+8U+haClz2GaNkAHlA82Z1H0nICPfh 1ajf49ttJE63FgMHtHoc2Rz9nv6TQqRXPdGdGynnvDa/o2YU5yq41T5BlYyIUiWv5qnp gNow== X-Gm-Message-State: AOJu0YyYEqhd5OYoLEL5HBLAebIQuloE5bE7ThszKwVsLXXwmUbyieDs Fo9ClcZLKf+Sc9eTYo1Cww5b149garsL6DcPQPqjIA44PEjpYhnLaNGDqAgsMUWqvFh+HO3W3WG CAmloprliyq2JDj3WuPVmiUjreVl1chM= X-Gm-Gg: Acq92OHfZlJxVWH6tSeZRtJOS2gV5zAKhLJ2JgaRJ1eILGM0cjVtXD8K9HQWDk2Yrpp I55M5unuhUxehj2bWJ/zUxcJMr9M/ydK66f3ALs/6vJHZA87CmASIisInfwWvGwZmdtfuLQwYIr bbAZEOptiRbl+3MvNtesiYeRd3y3cO4XOzf5tVCrDoM8RmqcLo9lCEDnx30oiMXOe6iFBZB5XY9 jKr3UDDuudVI+mfFLKVZL5Au7udK2bOLtLBk9B/k6XlHMROJWjR+HLKIM/rUOzxpWQ86kohthR0 cS32/dHsW5FxsL4UZUL4qYAklFbXeduAeEIYcIfrASbQtNWpgJup1W+HIxEs/ATZ8iDKIzK7 X-Received: by 2002:a05:690c:e347:b0:7be:7a7d:2e2 with SMTP id 00721157ae682-7c6acd8f58dmr11220707b3.44.1778631680224; Tue, 12 May 2026 17:21:20 -0700 (PDT) MIME-Version: 1.0 References: <6b6752b9-1af1-4650-8125-06440fdc7ccd@aklaver.com> <7f1fdbad-0343-498d-9f15-69bc713915cc@aklaver.com> <0e96fd4d-a97e-4461-a92e-ed2d7c27d38c@aklaver.com> In-Reply-To: From: Igor Korot Date: Tue, 12 May 2026 17:21:09 -0700 X-Gm-Features: AVHnY4IqSZZUfwnChyjnJNB-4yoTpPMnQ_aPMWLYp0Ns2iNCMYz--R41El9KQdg Message-ID: Subject: Re: Problem linking with Release library To: Adrian Klaver Cc: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000007c701f0651a7f5c8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000007c701f0651a7f5c8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Adrian, On Tue, May 12, 2026, 5:03=E2=80=AFPM Adrian Klaver wrote: > On 5/12/26 2:12 PM, Igor Korot wrote: > > Adrian, > > > > >> Have you looked at?: > >> > >> > https://www.postgresql.org/docs/current/installation-platform-notes.html#= INSTALLATION-NOTES-VISUAL-STUDIO > > > > Also - I'm not interested in downloading the whole server. I already > > have it installed on the other machine. > > > > I want libpq Debug and Release versions only as most developers do. > > Honestly, at this point I have no idea what your goal is. You will need > to provide a detailed explanation of what you did before that worked and > the conditions that where in place that made it work. Then provide > detailed information on your current conditions and what you want the > result to be. > What is want is to have a Debug and Release of libpq on this box. That's it. No server and no server utilities. Just libpq. As shared dynamic library. In the past what I did was to grab the 9.6 version and build the libpq with simply run nmake. I never needed to use Release version as I was working with Debug one. However couple of days ago I needed to build Release version of my software and so that's what I tried. Unfortunately building Release version resulted in the linking error I was mentioned in the OP. Debug version was working fine. Then I realized that there is a mismatch with the versions on my Windows and Linux machines and as I tried to stay with the same version around different OSes, I tried to get 17.4. But unfortunately I was not able to build it easily with just nmake as in the past because now it requires to install many other unrelated software. I have no idea why the Release build failed on 9.6. But Debug one worked for years So then I thought about creating MSVC project for building libpq as a dependency. All I need is to produce a basic default build of both Debug and Release builds of libpq only. No server and no ther software needed. Prefer to build version 17.4. I have MSVC 2017 on Windows 8.1. This setup was working fine with libpq Debug version 9.6 I hope now it's clear Let me know if it's not. Thank you. > > > > Thank you. > > > >> > >>> > >>> Thank you > >>> > >>>> > >>>> > >>>>>> -- > >>>>>> Adrian Klaver > >>>>>> adrian.klaver@aklaver.com > >>>> > >> > >> > >> -- > >> Adrian Klaver > >> adrian.klaver@aklaver.com > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > --0000000000007c701f0651a7f5c8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, Adrian,



On Tue, May 12, 2026, 5:03=E2=80=AFPM Adrian Klaver <adrian.klaver@aklaver.com> wrote:
On 5/12/26 2:12 PM, Igor Korot wrote= :
> Adrian,
>

>> Have you looked at?:
>>
>> https://www.postgresql.org/docs/current/installati= on-platform-notes.html#INSTALLATION-NOTES-VISUAL-STUDIO
>
> Also - I'm not interested in downloading the whole server. I alrea= dy
> have it installed on the other machine.
>
> I want libpq Debug and Release versions only as most developers do.
Honestly, at this point I have no idea what your goal is. You will need to provide a detailed explanation of what you did before that worked and the conditions that where in place that made it work. Then provide
detailed information on your current conditions and what you want the
result to be.

What is want is to have a Debug and Release of libpq on this b= ox.

That's it.
=

No server and no server utili= ties.

Just libpq. As sha= red dynamic library.

In = the past what I did was to grab the 9.6 version and build the libpq with si= mply run nmake.

I never = needed to use Release version as I was working with Debug one.

However couple of days ago I needed = to build Release version of my software and so that's what I tried.
Unfortunately building Release version resulted in the = linking error I was mentioned in the OP.

<= div dir=3D"auto">Debug version was working fine.
Then I realized that there is a mismatch with the = versions on my Windows and Linux machines and as I tried to stay with the s= ame version around different OSes, I tried to get 17.4.

But unfortunately I was not able to build i= t easily with just nmake as in the past because now it requires to install = many other unrelated software.

I have no idea why the Release build failed on 9.6. But Debug one wo= rked for years=C2=A0

So = then I thought about creating MSVC project for building libpq as a dependen= cy. All I need is to produce a basic default build of both Debug and Releas= e builds of libpq only. No server and no ther software needed. Prefer to bu= ild version 17.4.

I have= MSVC 2017 on Windows 8.1. This setup was working fine with libpq Debug ver= sion 9.6=C2=A0

I hope no= w it's clear=C2=A0

L= et me know if it's not.

Thank you.


>
> Thank you.
>
>>
>>>
>>> Thank you
>>>
>>>>
>>>>
>>>>>> --
>>>>>> Adrian Klaver
>>>>>> adrian.klaver@aklaver.com
>>>>
>>
>>
>> --
>> Adrian Klaver
>> adrian.klaver@aklaver.com


--
Adrian Klaver
adrian.klaver@aklaver.com
--0000000000007c701f0651a7f5c8--