| From: | Dmitry Igrishin <dmitigr(at)gmail(dot)com> |
|---|---|
| To: | Roberto de Figueiredo Ribeiro <roberto(dot)f(dot)ribeiro(at)dnit(dot)gov(dot)br> |
| Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Problem linking to libpq.lib on Windows |
| Date: | 2019-02-14 10:59:17 |
| Message-ID: | CAAfz9KO9C_8bpaEcz2PrPHcqEvyh8otJBWQ9K2WBB0kTDxny_w@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
чт, 14 февр. 2019 г. в 12:54, Roberto de Figueiredo Ribeiro
<roberto(dot)f(dot)ribeiro(at)dnit(dot)gov(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Roberto de Figueiredo Ribeiro | 2019-02-14 11:43:04 | RES: Problem linking to libpq.lib on Windows |
| Previous Message | suganthi Sekar | 2019-02-14 09:51:15 | logical replication |