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 1wMqxg-000OUh-1v for pgsql-general@arkaria.postgresql.org; Tue, 12 May 2026 17:32:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wMqxf-005IxI-0F for pgsql-general@arkaria.postgresql.org; Tue, 12 May 2026 17:32:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wMqxe-005Ix9-1r for pgsql-general@lists.postgresql.org; Tue, 12 May 2026 17:32:02 +0000 Received: from mail-yw1-x112b.google.com ([2607:f8b0:4864:20::112b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wMqxc-00000000Ejz-07oO for pgsql-general@lists.postgresql.org; Tue, 12 May 2026 17:32:01 +0000 Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-7bd5e373d07so62151187b3.2 for ; Tue, 12 May 2026 10:32:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1778607120; cv=none; d=google.com; s=arc-20240605; b=Fh561d0Uv5MeL/ak+SZLzk7YxqIDQYD0CDyju4ZP0Ev+I0Ocq3dGB2nJCkCRqniw1V 9UYYuHI+7bo+Tr5rOuNXrA06pTMOAk6SySyxc9Cg4lcsb8vrBdaQIaDYDG0gmk0bE9HZ NsYe4WgB5LvaLtZhKicGJDYJ4Z8frC7mA8pOWIrvPiwD+o2BYXTGbEp+uunYmNQ3yB8W yo+rAmDUJVrFN0G41KpMq26NDfN2qqZxRh4+8bF1Rysbw71o2YHdDRinPbRzIbBzStc0 vFQ06P08GdR9mtS1p5Qe7myD/l5vu5EnNWomE5dZ5DO1ntSo2U66sCU+DRUxAxwfoiFg Pa8w== 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=4xc4ERcJ5uo4R6ZM/jL9FesaLwJq6kGH2MvCMXg/cCo=; fh=xBf723vKtoVNM9Vu4Q2JI2N8bTVz6cGesqnYlEyaNGU=; b=Yh8T3uV6iJis7nDiZgR2GS1oLA3PVQh9feQxTbAvp7aTyAGYPcu0KvXIxKrKH3Gh70 VhC8Zfy18Uz3ng6WXVd2EwHbRhbMJeawP/MbSpA835XNu2LQpH0q2a+K7P+zzsT0v4wc BbOXGvg0C9CmOKZIVlwPl6R/pv2QY7mob8gUgFA/LtfW3Pf7EAfls3Yq2eIIvF1hbgXV FWdDYdPemV7ScLyOop7qI/5R5VTvj+ydYJubasFocXnu4HL2e0XKXff6EUF2DOfydkD4 JHdfkTGCWUwsuBntsLIbFVzuwE1OOWCGbkMiQlBrsaHR8swTHd4H81+z5TkE7fXfjddd kbiA==; 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=1778607120; x=1779211920; 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=4xc4ERcJ5uo4R6ZM/jL9FesaLwJq6kGH2MvCMXg/cCo=; b=OLhQjXseouqknZ6pEYBTJFRQONtcRPyO4JLFYS2m0XFBBYJtu112D5KVXcRqJ//Oql XNH/2y6jmqqYvhaCFRTTue2ZuZnTFlEVjmlr2OKjvqwztFReEeqVG/nN1N+rsN24fcP/ 279JU4y/5wTz55k00eaRlZ/T8AK0gj46MB1s74wHWUvvGZepHD5XJKWnXf+Lg1KbnKY7 ew6Ud9m/xmZiURNAo+MeavBnVXQWEGV5ZyE9FLUDIuRbpLEHTGT20hsTg7rsP2gAj1ZF HoDzGEIOi+MH0nsCalvc0+SNtZo5chRFtYnDDpe2z7ZkVVzqwojaulbbahwkeqvdLnFs MtLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778607120; x=1779211920; 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=4xc4ERcJ5uo4R6ZM/jL9FesaLwJq6kGH2MvCMXg/cCo=; b=mvJ+vCejnrJ5svnOGbVe9oEkAU58qxrOAlNQxYjWQSvRYGh+giF30lSPfBdRCvf467 qRnXIOYVygkNgHZbVVX5d1n2dG9Pv6xM7mkTqNK9DE5zKR+Le7ZXTCRWCPHJvykNCmBh Fk4RSMv3yxWVB8l4YnKxWUYXdnvJcf527yb686fa1lDLvnANAA5kEou9LeysWkwwLDHh 7RWf/KneuL8TuC8CmFHd2qTj+VNdz2tKTu9KNHNbf+VFEEhGv0d1lGszUVbjGLLhxJ6T bIayAjU4bc5c7iR5YVdYuOo/ZPCBjj0j9JH+9kbmQ9xBocOgJoepBEiUNi6T/aR77tU4 2nXg== X-Gm-Message-State: AOJu0YzyNO/IE8WzHbewgigmeyvVfOzcbldwv1IxiNrqkO/la0T4polN Y6WVt+hElDo5J2DpDSrKnSI8J9xQlTgeJXqLLR+Aku2YPfcyp2BlJ9xhM2uyov8RWw0RymPK8f9 Tvh211TMa88D3qMen7etZlwV62sEivZ0= X-Gm-Gg: Acq92OHCrQDivwL1ikGofbHgvDSelprXfNqyHcxvc4u52DJa7hgaWDDEagGTPz9e9te fhgTrqvkTC2zzuuim61zDOhWrenTPrTFmyMeO+JCZjqSDkBbodqNEBEgNMHjovY4aCUer8+bh9k 3V0zCttEnwiJV8hwbiT2xf/y71STD9rSeTndxdEIij+3L+6GXCnXwWDgN+wDYHphP/X3tr4REk7 dA2M3dOuu2BcNlh8Jt+ymmhoNaQzERQ93i7SCXWlwoO9A5SGWbjPf1pG1SFaTHgk1hvltT6NdTD NY5j/mL7NtnyrATvj3APQNFYtR3y4CplALYr6L7OX828wrlSNR0Ot1AXCsudmRD03v4q5bsh X-Received: by 2002:a05:690c:82:b0:7b6:f4f:f05e with SMTP id 00721157ae682-7c56394e6d7mr34135307b3.40.1778607119681; Tue, 12 May 2026 10:31:59 -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 10:31:48 -0700 X-Gm-Features: AVHnY4KdgVfAyStwWIHqMmPgifvqJeryMq5mreN4sWUom74BdPtaZRVlpapkcis Message-ID: Subject: Re: Problem linking with Release library To: Adrian Klaver Cc: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000904fd50651a23d20" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000904fd50651a23d20 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Adrian, On Tue, May 12, 2026 at 9:31=E2=80=AFAM Adrian Klaver wrote: > On 5/11/26 11:55 PM, Igor Korot wrote: > > Hi, Adrian, > > > > >> To me it looks like you need to review your tool chain and build > process. > > > > So I'd like to get back to this. > > > > Turns out I had a very old 9.6 version. > > > > Now I checked and on my Linux box I have 17.4 > > > > What I'd like to do is integrate libpq building inside MSVC as a > dependency. > > > > Is it possible? > > > > If not - what's the simplest possible way of building the library? > > Have you looked at?: > > > https://www.postgresql.org/docs/current/installation-platform-notes.html#= INSTALLATION-NOTES-VISUAL-STUDIO No, I didn=E2=80=99t. Thx for the link. However, if you probably aware, on Windows there is a difference between Debug and Release builds. If one links Release library with Debug binary it will run incorrectly if run at all. So since I=E2=80=99m right now am building Debug version of my software I n= eed to build Debug version alone with Release one. I presume that the download link will give me Release build only? Thank you. > > > > > Thank you > > > >> > >> > >>>> -- > >>>> Adrian Klaver > >>>> adrian.klaver@aklaver.com > >> > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > --000000000000904fd50651a23d20 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, Adrian,

On Tue, May 12, 202= 6 at 9:31=E2=80=AFAM Adrian Klaver <adrian.klaver@aklaver.com> wrote:
On 5/11/26 11:55 PM, Igor Korot wrote:
> Hi, Adrian,
>

>> To me it looks like you need to review your tool chain and build p= rocess.
>
> So I'd like to get back to this.
>
> Turns out I had a very old 9.6 version.
>
> Now I checked and on my Linux box I have 17.4
>
> What I'd like to do is integrate libpq building inside MSVC as a d= ependency.
>
> Is it possible?
>
> If not - what's the simplest possible way of building the library?=

Have you looked at?:

https://www.postgresql.org/docs/current/installation-platform-notes.ht= ml#INSTALLATION-NOTES-VISUAL-STUDIO

<= /div>
No, I didn=E2=80=99t. Thx for the link.

However, if you probably aware, on W= indows there is a difference between Debug and Release builds.

If one links Release library with De= bug binary it will run incorrectly if run at all.
So since I=E2=80=99m right now am building Debug = version of my software I need to build Debug version alone with Release one= .

I presume that the dow= nload link will give me Release build only?

Thank you.



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


--
Adrian Klaver
adrian.klave= r@aklaver.com
--000000000000904fd50651a23d20--