Re: More SCO funnies

From: Dave Smith <dave(at)candata(dot)com>
To: Larry Rosenman <ler(at)lerctr(dot)org>
Cc: PostgresSQL mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: More SCO funnies
Date: 2000-12-01 19:05:54
Message-ID: 3A27F692.30204@candata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Larry Rosenman wrote:

> * Dave Smith <dave(at)candata(dot)com> [001201 12:11]:
>
>> Ok so thanks to Larry I managed to get postgresql compiled and running
>> on SCO. Now I'm trying to compile a small 'C' program. When I link I get
>>
>> cc -L/usr/local/pgsql/lib -lpq -lm -o t_postgresql t_postgresql.o
>> post_util.o
>> undefined first referenced
>> symbol in file
>> PQexec t_postgresql.o
>> PQclear t_postgresql.o
>> PQfinish t_postgresql.o
>> PQresultStatus t_postgresql.o
>> PQcmdTuples t_postgresql.o
>> PQntuples t_postgresql.o
>> PQgetvalue t_postgresql.o
>> PQftype t_postgresql.o
>> PQfmod t_postgresql.o
>> PQnfields t_postgresql.o
>> PQfname t_postgresql.o
>> PQsetdbLogin t_postgresql.o
>> PQstatus t_postgresql.o
>> floor post_util.o
>> i386ld fatal: Symbol referencing errors. No output written to t_postgresql
>>
>
> put the -lpq -lm AFTER the .o file
>
>
>
>> Larry, can you work your magic again?

Well I guess sco and linux are a bit different. Also had to add -lsocket
to the end and presto!
Thanks for your speedy reply

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Larry Rosenman 2000-12-01 19:08:35 Re: More SCO funnies
Previous Message Larry Rosenman 2000-12-01 18:56:05 Re: More SCO funnies