Search Postgresql Archives

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

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

 



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


[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