From: Roberto de Figueiredo Ribeiro <roberto.f.ribeiro@dnit.gov.br>
To: Dmitry Igrishin <dmitigr@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: RES: Problem linking to libpq.lib on Windows
Date: Thu, 14 Feb 2019 11:43:04 +0000
Message-ID: <fb15f9f2304b4969899dbe67ed25cabf@SEDEDF007BSA.intra.dnit> (raw)
In-Reply-To: <CAAfz9KO9C_8bpaEcz2PrPHcqEvyh8otJBWQ9K2WBB0kTDxny_w@mail.gmail.com>
References: <3e0380f71d28430ba5172bf985172447@SEDEDF007BSA.intra.dnit>
<CAAfz9KO9C_8bpaEcz2PrPHcqEvyh8otJBWQ9K2WBB0kTDxny_w@mail.gmail.com>
Oof! Works now, thanks for the help!
-----Mensagem original-----
De: Dmitry Igrishin [mailto:dmitigr@gmail.com]
Enviada em: quinta-feira, 14 de fevereiro de 2019 08:59
Para: Roberto de Figueiredo Ribeiro <roberto.f.ribeiro@dnit.gov.br>
Cc: pgsql-general@postgresql.org
Assunto: Re: Problem linking to libpq.lib on Windows
чт, 14 февр. 2019 г. в 12:54, Roberto de Figueiredo Ribeiro
<roberto.f.ribeiro@dnit.gov.br>:
>
> Hi list,
>
>
>
> I’m building a platform on C++ that uses parts of the libpq-fe.h in it. I had been previously compiling it in linux, and all was fine. Switched to windows, now during linking it accuses an error, unable to find an object file.
>
>
>
> This is the line I’m compiling with:
>
>
>
> >: cl /I path\to\include main.cpp /link /libpath path\to\lib –opt:ref libpq.lib
Try this (not the colons):
cl /I "path\to\include" main.cpp /link /libpath:"path\to\lib" /opt:ref libpq.lib
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: roberto.f.ribeiro@dnit.gov.br, dmitigr@gmail.com
Subject: Re: Problem linking to libpq.lib on Windows
In-Reply-To: <fb15f9f2304b4969899dbe67ed25cabf@SEDEDF007BSA.intra.dnit>
References: <3e0380f71d28430ba5172bf985172447@SEDEDF007BSA.intra.dnit> <CAAfz9KO9C_8bpaEcz2PrPHcqEvyh8otJBWQ9K2WBB0kTDxny_w@mail.gmail.com> <fb15f9f2304b4969899dbe67ed25cabf@SEDEDF007BSA.intra.dnit>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox