Re: how to add my source file? - Mailing list pgsql-hackers

From dakotali kasap
Subject Re: how to add my source file?
Date
Msg-id 20061227171506.15444.qmail@web31309.mail.mud.yahoo.com
Whole thread Raw
In response to how to add my source file?  (dakotali kasap <dakotalidavid@yahoo.com>)
Responses Re: how to add my source file?
List pgsql-hackers
Hi,

I have one source and one header file which are called my_writer.h and my_writer.c. I included my_writer.h inside postgres.c and do the implementation of declared functions inside my_writer.c. When I include, some other header files of postgresql (like nodes/pg_list.h or nodes/nodes.h) in my_writer.c, it gives me compile errors that are related with these header files of postgresql, although there is no problem.

Do you know why?

regards,

dakotali



dakotali kasap wrote:
> Hi,
>
> I want to add my .c and .h source files into the postgresql project.
> What kind of changes should I make with the Makefiles. It seems that,
> it is not enough just to add the object file of the C files into the
> Makefile.

Huh, why not?  Typically you just add the files to OBJS.  What problem
are you having?

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

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

                http://www.postgresql.org/about/donate


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: how to add my source file?
Next
From: dakotali kasap
Date:
Subject: Re: how to add my source file?