Re: [HACKERS] Problem of Magic Block in Postgres 8.2

2010-04-01 Thread Takahiro Itagaki
Pei He wrote: > The extension functions was developed by C++ mixed with C. > ERROR: incompatible library > "/home/hepei/bin/Chameleon/lib/libspgist_trie.so": missing magic block > HINT: Extension libraries are required to use the PG_MODULE_MAGIC macro. You can use extern "C" blocks for PG_MOD

[HACKERS] Problem of Magic Block in Postgres 8.2

2010-04-01 Thread Pei He
Hi, I have some old code for extension functions in Postgres 8.0. And, I am trying to make it work with Postgres 8.2. One problem is about the Magic Block. The extension functions was developed by C++ mixed with C. The code is like: extern "C" Datum spgistinsert(PG_FUNCTION_ARGS) { ... } I have