Re: /usr/bin/ld: cannot find [...] when compiling

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To:
Cc: "Janek Sendrowski" <janek12(at)web(dot)de>, pgsql-general(at)postgresql(dot)org
Subject: Re: /usr/bin/ld: cannot find [...] when compiling
Date: 2013-11-24 19:05:39
Message-ID: 6546.1385319939@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I wrote:
> "Janek Sendrowski" <janek12(at)web(dot)de> writes:
>> Makefile:
>> PROGRAM = test
>> DATA = test.c

> It looks like the problem is that there aren't any Postgres-specific -I
> flags in the make command. After a bit of poking around in the pgxs code
> I think the reason why not is that you're using the PROGRAM target instead
> of MODULES or MODULE_big.

No, wait, I take that back. The problem with this makefile is you
need to say
OBJS = test.o
in order to tell the makefile what files PROGRAM is built from. It seems
pretty unlikely that "DATA = test.c" is what you want, either.

Having said that, I'm still not sure that PROGRAM is really the final
target you want.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Janek Sendrowski 2013-11-24 19:23:28 Re: /usr/bin/ld: cannot find [...] when compiling
Previous Message Tom Lane 2013-11-24 18:56:31 Re: /usr/bin/ld: cannot find [...] when compiling