Thread: Re: C-procedure crashed in Postgres 8.3.3 when using 'text' variable (WinXP)

I download ready binaries from http://www.postgresql.org/ftp/binary/v8.3.3/win32/
(postgresql-8.3.3-1-binaries-no-installer.zip)
So I didn't know exactly which compilier was used.
Are these binaries built by means of MSVC?

Regards, Marina.

> el dorado <do_ra_do@mail.ru> writes:
> > I'd like to write C-function returning text for using in PG 8.3.3. (WinXP SP2)
> > For compilation I use MinGW-5.1.4 (gcc 3.4.5),MSYS-1.0.10.
>
> Was the Postgres server you're using built the same way?  I seem to
> recall some incompatibilities between MinGW and MSVC builds.
>
>             regards, tom lane
>
>

Standard binaries compilier - how to know?

From
el dorado
Date:
Hello!
Is there any opportunity to find out what compilier is used to build standard binaries from
http://www.postgresql.org/ftp/binary/v8.3.3/win32/
(postgresql-8.3.3-1-binaries-no-installer.zip
MSVC or MinGW(gcc)?
I have some problems with C-procedures compilation (PG 8.3, WinXP). I've got the information from mailing list (thanks
toall who had answered) that the cause of these problems could be the using of different compiliers. 
But now my library doesn't work correctly in both variants (MSVC and MinGW)... :(

Regards, Marina.

Re: Standard binaries compilier - how to know?

From
"Dave Page"
Date:
2008/7/17 el dorado <do_ra_do@mail.ru>:
> Hello!
> Is there any opportunity to find out what compilier is used to build standard binaries from
http://www.postgresql.org/ftp/binary/v8.3.3/win32/
> (postgresql-8.3.3-1-binaries-no-installer.zip
> MSVC or MinGW(gcc)?
> I have some problems with C-procedures compilation (PG 8.3, WinXP). I've got the information from mailing list
(thanksto all who had answered) that the cause of these problems could be the using of different compiliers. 
> But now my library doesn't work correctly in both variants (MSVC and MinGW)... :(

SELECT version();

It was actually built with VC++ 2005, fully service-packed. That said,
it is possible to mix'n'match compilers, provided you don't pass crt
pointers around. Both Slony and PostGIS are still built with
Mingw/Msys.

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com