In article <1041vc4s351h9fb@[EMAIL PROTECTED]
>,
rdd@[EMAIL PROTECTED]
(R. D. Davis) writes:
> Kassa.mo: In function `_INITM_Kassa':
> /home/rdd/modula-3/pgsql/kassa/FreeBSD4/Kassa.m3:136: undefined
reference
> to `PQsetdb'
In case anyone else has run into a similar problem, here's how I
solved it... doh, I should have thought of this solution before I
posted my initial message... :-)
It turns out that my initial hunch was right, so I decided to try
using PQconnectdb instead of PQsetdb. Things now appear to be working
as they should. So, in Kassa, I just commented out anything to do
with PQsetdb, replacing those lines with the following:
ctinfo : char_star := TtoS("hostaddr=192.168.99.99 dbname=foo");
and...
conn := PQconnectdb(ctinfo);
Now I can get to work on ****ting my record/lp/cd/etc. database from
Perl CGI to Modula-2, keeping the same database. I was hoping to do
this in both X and plain ASCII text so that it would work with both X
and plain old terminals, but I don't see any functions with SRC
Modula-3 pertaining to non-X cursor positioning... so that's going to
take a bit more work. Am I overlooking something?
--
Copyright (C) 2003 R. D. Davis The difference between humans & other
animals:
All Rights Reserved an unnatural belief that we're above Nature
&
rdd@[EMAIL PROTECTED]
410-744-4900 her other creatures, using dogma to justify
such
http://www.rddavis.org
beliefs and to justify much human cruelty.


|