Search Postgresql Archives

Compiling with MinGW in windows , compile but my server down

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
*-------------------------------------------------------*




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux