Compiling with MinGW in windows , compile but my server down - Mailing list pgsql-general

From Edwin Quijada
Subject Compiling with MinGW in windows , compile but my server down
Date
Msg-id BAY155-w4940571B5E99DB6D0287A0E3730@phx.gbl
Whole thread Raw
List pgsql-general
Hi!!
I could compile my windows extension for Postgres but now when I try to run this extension my server goes down. I compiled using Mingw and this line

C:\mingw\bin\gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
                                      -I "C:/Program Files/PostgreSQL/8.3/include/"
                                      -I "C:/Program Files/PostgreSQL/8.3/include/server"
                                      -I "C:/Program Files/PostgreSQL/8.3/include/server/port/win32"
                                      -DEXEC_BACKEND "-I C:/Program Files/PostgreSQL/8.3/include/server/port/win32"    -c pg2.c -o pg2.o
AND for linking

C:\mingw\bin\gcc  -shared -o pg_server_function.dll pg2.o -L "C:\Program Files\PostgreSQL\8.3\lib" -lpostgres

This compile without errors but when I created the function and try to run I get my server down.
There is any way to debug this function to find out what cause the error ??

TIA


*-------------------------------------------------------*
*-Edwin Quijada
*-Developer DataBase
*-JQ Microsistemas
*-Soporte PostgreSQL
*-www.jqmicrosistemas.com
*-809-849-8087
*-------------------------------------------------------*



pgsql-general by date:

Previous
From: jackassplus
Date:
Subject: Re: how do i count() similar items
Next
From: Lazaro Ruben Garcia Martinez
Date:
Subject: postgresql cluster on SAN