On Sun, Sep 26, 2010 at 12:56 AM, Esteban Zimanyi <estebanzima...@gmail.com> wrote: > When I run the examples there is a server crash. I used both Visual > C++ 2008 and 2005 for building the dll. I also used both PostgreSQL > versions 8.4 and 9.0. All versions produce the same problem. > > Do you know how can I solve the problem ? Someone has a Visual C++ > solution that works that can send me ?
If you're developing your project as VC++ standalone project, codes in tutorials and contrib modules don't work at all, because they don't have __declspec(dllexport) for each function and variable to be exported. They will work well as long as you use mingw or special VC++ environment used to build the core. I had the same problems before, and I wrote some hacks for VC++. The codes in pg_reorg/lib in pgFoundry might be a help: http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/reorg/pg_reorg/lib/reorg.c http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/reorg/pg_reorg/lib/pgut/pgut-be.h -- Itagaki Takahiro -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers