Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I wrote:
> "Janek Sendrowski" <janek12@xxxxxx> 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


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux