Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Modula 3 > Problem solved ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 88 of 149
Post > Topic >>

Problem solved (was: SRC Modula-3 and undefined reference...)

by rdd@[EMAIL PROTECTED] (R. D. Davis) Feb 29, 2004 at 06:32 AM

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.
 




 2 Posts in Topic:
SRC Modula-3 and undefined rerenence w/ Postresql
rdd@[EMAIL PROTECTED] (R  2004-02-28 20:43:48 
Problem solved (was: SRC Modula-3 and undefined reference...)
rdd@[EMAIL PROTECTED] (R  2004-02-29 06:32:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 23:58:52 CDT 2008.