Can you explain a bit more about how you got the pgdriver to link?
I'm using PG 7.1.2 (which is distributed with cygwin) and see no libpqdll.lib or libpqdll.(anything) (I do see the libpq and yep that's really wrong.)
Thanks,