Thanks a lot, it worked:) Actually, I have tried to include "postgres.h"
before, but not at the top of the other includes.
regards,
dakotali
Bruce Momjian <[EMAIL PROTECTED]> wrote:
Ah, all *.c files must have this at the top before they include _any_
other files, including system include file
dakotali kasap wrote:
my_writer.c looks like:
-
#include "nodes/nodes.h"
#include
#include "nodes/pg_list.h"
well, you normally have to include "postgres.h" before any other
postgres header.
cheers
andrew
---(end o
Ah, all *.c files must have this at the top before they include _any_
other files, including system include files:
#include "postgres.h"
You will see that all our backend files follow this rule.
---
dakotali kasap
dakotali kasap wrote:
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.
Sorry I did not want to bother you with the details, I just thought that there
is smth that I have to do apart from adding the object file name into the
Makefile.
So, here is the whole picture:
I want to write a function that takes the raw parsetree and rewrites it
according to my rules, then
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 m
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
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.
Can anyone help to me please?
kind regards,
dakotali
___