taocpp / taopq

C++ client library for PostgreSQL
Boost Software License 1.0
265 stars 40 forks source link

[hotfix] taopq requires ws2_32 on Windows #65

Closed uilianries closed 1 year ago

uilianries commented 1 year ago

Both WSAPoll and WSAGetLastError are native Windows functions and implemented by Ws2_32 library.

Both functions are used by Connection.cpp when building for Windows.

CMake does not injects that library automatically, when winsock2.h is listed, neither Windows compiler, so we need to add it manually.

fixes #64