Re: Compilate problems

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Yadisnel Galvez Velazquez <ygalvez(at)uci(dot)cu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Compilate problems
Date: 2009-10-04 17:27:02
Message-ID: 20091004172702.GA6193@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Yadisnel Galvez Velazquez wrote:
> I am working actually in an replication project. I need a trigger function but when I compile this, the C compilator return the log message:
>
> # cc -fpic -c main.c

You're missing some -I directives (among other things). I suggest you
compile this way:

cc $(pg_config --cflags) -I$(pg_config --includedir)/server -c main.c

You need pg_config to be in PATH for this to work.

PS: I suggest you use the pgsql-es-ayuda list for spanish help. There's
people from @uci.cu there too.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Fetter 2009-10-04 18:10:44 Re: Compilate problems
Previous Message Yadisnel Galvez Velazquez 2009-10-04 17:17:23 Compilate problems