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

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: el dorado <do_ra_do(at)mail(dot)ru>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: C-procedure crashed in Postgres 8.3.3 when using 'text' variable (WinXP) - additional
Date: 2008-07-21 08:59:59
Message-ID: 4884500F.9010304@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

el dorado wrote:
>
> Hello.
> Thank you very much for your answer.

> 1>d:\pgsql83\getstring\c_getstring.c(10) : warning C4273: 'Pg_magic_func' : inconsistent dll linkage
> 1> d:\pgsql83\getstring\c_getstring.c(10) : see previous definition of 'Pg_magic_func'

This should be a big red flag to you. It suggests that you have issues
with __declspec(dllimport) and __declspec(dllexport) annotations.

It looks like you are using a Microsoft Visual Studio compiler. If you
are using Visual Studio 2005 Express Edition you must modify the
project's preprocessor definitions to set the WIN32 macro, as 2005
Express Edition does not do so by default. See earlier discussion in the
archives from a few months ago.

Alternately, modify the definition of the default win32 project to set
the right macros, then create a new project.

This issue does NOT affect the full version, only the Express edition.
It also does not affect 2008 Express Edition. I've just reproduced it on
a clean install of Windows and the Express Edition.

--
Craig Ringer

In response to

Browse pgsql-general by date

  From Date Subject
Next Message el dorado 2008-07-21 09:43:15 Fw: Re: C-procedure crashed in Postgres 8.3.3 when using 'text'variable (WinXP) - additional
Previous Message el dorado 2008-07-21 08:33:47 Re: C-procedure crashed in Postgres 8.3.3 when using 'text' variable (WinXP) - additional