ocamlopt -I
tells the compiler directories in which to look for .cm*
files. It doesn’t look like the right place to mention libpq
.
I don’t see -cclib -lpq
in that command line, but I bet it’d be needed:
-cclib -llibname
Pass the-llibname
option to the linker. This causes the given C library to be linked with the program.