Re: [HACKERS] pginterface compiling - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] pginterface compiling
Date
Msg-id 199804231519.LAA24260@candle.pha.pa.us
Whole thread Raw
In response to pginterface compiling  ("Jose' Soares Da Silva" <sferac@proxy.bazzanese.com>)
List pgsql-hackers
>
> Hi, all
>
> I have this message when I try to compile pginterface...
> Please help...
>
> $ make all
> cc -c -g -Wall -I/usr/local/pgsql/include  pginterface.c halt.c
> cc -g -Wall -I/usr/local/pgsql/include   -L/usr/local/pgsql/lib -lpq     -o .c
> /usr/lib/crt1.o: In function `_start':
> /usr/lib/crt1.o(.text+0x5a): undefined reference to `main'
> make: *** [.c] Error 1
> verde:~/pgsql/contrib/pginterface$
>                                                           Jose'

Someone has been playing with the Makefile.  Basically it is complaining
because you have only specified libraries in the compile line.  You need
a function to call the pginterface, with a main.  Try one of the sample
*.c files.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] Re: [PORTS] BSDI-3.1
Next
From: Byron Nikolaidis
Date:
Subject: retrieving varchar size