Received: from gisc.berkeley.edu (polo.GISC.Berkeley.EDU [128.32.222.12]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eAG253s36551 for ; Wed, 15 Nov 2000 21:05:04 -0500 (EST) (envelope-from xjc@gisc.berkeley.edu) Received: from amundsen (amundsen.GISC.Berkeley.EDU [128.32.222.28]) by gisc.berkeley.edu (8.8.8/8.8.8) with SMTP id SAA07439 for ; Wed, 15 Nov 2000 18:03:37 -0800 (PST) From: "Jianchun XU" To: Subject: PgConnection type_info function Date: Wed, 15 Nov 2000 18:02:48 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Archive-Number: 200011/171 X-Sequence-Number: 207 I cannot link with postgreSQL. I had done so on a linux machine, only linked to one library "pq++" and succeeded. Now I try it on NetBSD, I cannot even if I add 3 other libraries: "pq, ecpg, pgeasy" found in /usr/local/pgsql/lib. Here are the messages: ----------------------------------------------------------- g++ -L/usr/local/pgsql/lib -lpq++ -lpq -lecpg -lpgeasy -o problog.cgi problog.o xutils.o xpgsql.o prob.o problog.o: Undefined symbol `PgConnection type_info function' referenced from text segment problog.o: Undefined symbol `PgConnection type_info node' referenced from text segment xpgsql.o: Undefined symbol `PgConnection type_info function' referenced from text segment xpgsql.o: Undefined symbol `PgConnection type_info node' referenced from text segment prob.o: Undefined symbol `PgConnection type_info function' referenced from text segment prob.o: Undefined symbol `PgConnection type_info node' referenced from text segment collect2: ld returned 1 exit status *** Error code 1 ----------------------------------------------------------- I wrote a most simple test program, the same problem while linking. Could anybody help me? Thanks!