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

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to