Re: [HACKERS] pginterface compiling

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: sferac(at)proxy(dot)bazzanese(dot)com (Jose' Soares Da Silva)
Cc: pgsql-hackers(at)postgreSQL(dot)org, pgsql-questions(at)postgreSQL(dot)org
Subject: Re: [HACKERS] pginterface compiling
Date: 1998-04-23 15:19:36
Message-ID: 199804231519.LAA24260@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)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)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1998-04-23 15:22:14 Re: [HACKERS] Re: [PORTS] BSDI-3.1
Previous Message Bruce Momjian 1998-04-23 14:51:43 Re: [PORTS] BSDI-3.1