Re: [ADMIN] compiling C Funktion for PostgreSQL

2007-07-17 Thread Tom Lane
=?iso-8859-1?Q?J=FCrgen_Ulrich?= <[EMAIL PROTECTED]> writes: > In function 'Pg_magic_func': 'PG_VERSION_NUM' undeclared (first use in > function) Perhaps you forgot to include postgres.h? That should always be the very first #include in any backend module. regards, tom la

Re: [ADMIN] compiling C Funktion for PostgreSQL

2007-07-17 Thread Marcin Giedz
Jürgen Ulrich wrote: Hello, Hi, I hope this is what you're looking for: add to your C code: #ifdef PG_MODULE_MAGIC PG_MODULE_MAGIC; #endif Regards, Marcin I have a problem with the postgreSQL Source Code when I compile the fuzzystrmatch.c. I want to try to replace all german umlauts for

[ADMIN] compiling C Funktion for PostgreSQL

2007-07-17 Thread Jürgen Ulrich
Hello, I have a problem with the postgreSQL Source Code when I compile the fuzzystrmatch.c. I want to try to replace all german umlauts for the soundex algorithm. But when I want to compile the C Code, I get an error on the following line in the fuzzystrmatch.c: PG_MODULE_MAGIC; And her