Didn't take this newbie long to hit the first roadblock
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Sat Jul 19 03:01:51 UTC 2025
A quick look for dpq2 shows that by default it is configured to use a
static binding to PostgreSQL client library.
https://github.com/denizzzka/dpq2/blob/master/dub.json#L20
It explicitly adds a shared library dependency on it (``libs``
directive). Which is appropriate if you are on a posix system with a
package manager.
Naturally for a Windows user that isn't available to you.
You want the configuration "dynamic" instead.
Copy the appropriate shared library next to your executable and if the
names line up, it should work.
```json
"subConfigurations": {
"dpq2": "dynamic"
}
```
Here is the default names its looking for:
https://github.com/DerelictOrg/DerelictPQ/blob/master/source/derelict/pq/dynload.d#L552
More information about the Digitalmars-d-learn
mailing list