adamdruppe / arsd

This is a collection of modules that I've released over the years. Most of them stand alone, or have just one or two dependencies in here, so you don't have to download this whole repo.
http://arsd-official.dpldocs.info/arsd.html
531 stars 128 forks source link

Postgres linking error in Windows #364

Closed AlexanderZhirov closed 1 year ago

AlexanderZhirov commented 1 year ago

Adam, hi! The library cannot be attached when compiling the project in Windows. In Linux, linking is successful with your library. In Windows, I've already tried a bunch of methods.

This solution works, but it doesn't work with your library.

https://github.com/adamdruppe/arsd/blob/bd524763fcd8789f6cf070c35c39e38c1e642bf7/postgres.d#L15

изображение

изображение

adamdruppe commented 1 year ago

why oh why did they call it libpq.lib instead of pq.lib like everyone else does on windows

i guess i can just add the version windows case to account for the other name.

adamdruppe commented 1 year ago

try it w/ that commit linked

AlexanderZhirov commented 1 year ago

try it w/ that commit linked

Everything works! Thank you very much!