dpq2
dpq2 copied to clipboard
problems building static dpq2 on windows / Discussions area not enabled
Hi Denizzzka
I'm having problems building dpq2 on windows due to libraries not specified in the link stage. Just linking against libpq.lib gives the following undefined symbols (plus many more):
_pgstat64 pg_strcascmp pg_snprintf ... scram_SaltedPassword scram_ClientKey ... SSL_get1_peer_certificate ERR_set_debug
I've build libpq using vcpkg on windows and it automatically grabs postgresql 14 sources. I'm patching my local copy's dub.json to work around the issue, but having a place to discuss this library would be pretty handy. If you could enable the discussion feature of this repository I'd make use of it.
Thanks for considering it, and more importantly, thanks for dpq2.
Hi!
It is possible to add these symbols, but in practice dynamic linking seems to suit everyone users. (And all my projects for Windows currently use dynamic linking with libpq.dll)
If there is any justification for need Windows static linking implementation, write here, there are no fundamental problems to fix it, it seems
I'm patching my local copy's dub.json to work around the issue, but having a place to discuss this library would be pretty handy.
We can disscus this in PR (PR draft) page comments if you provide patch for dub.json