Re: src/tools/msvc usage instructions

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Jeremy Drake" <pgsql(at)jdrake(dot)com>
Cc: "PostgreSQL Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: src/tools/msvc usage instructions
Date: 2006-10-03 05:43:01
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCEA0FC0B@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Looks like the gendef script is failing. Check the contents of
release\postgres\postgres.def - it should have thousands of symbols, but
I'm willing to bet it's empty...

//Magnus

> -----Original Message-----
> From: Jeremy Drake [mailto:pgsql(at)jdrake(dot)com]
> Sent: Tuesday, October 03, 2006 1:28 AM
> To: Magnus Hagander
> Cc: PostgreSQL Hackers
> Subject: Re: [HACKERS] src/tools/msvc usage instructions
>
> I now get things to compile, but now I get linker errors on
> any dll which needs to access symbols from postgres.exe via
> postgres.lib. For example:
>
> 1>------ Build started: Project: autoinc, Configuration:
> Release Win32
> 1>------ Generate DEF file Not re-generating AUTOINC.DEF,
> file already
> 1>exists.
> 1>Linking...
> 1> Creating library Release\autoinc\autoinc.lib and object
> 1>Release\autoinc\autoinc.exp autoinc.obj : error LNK2019: unresolved
> 1>external symbol _SPI_modifytuple referenced in function _autoinc
> 1>autoinc.obj : error LNK2019: unresolved external symbol _pfree
> 1>referenced in function _autoinc autoinc.obj : error LNK2019:
> 1>unresolved external symbol _pg_detoast_datum referenced in function
> 1>_autoinc autoinc.obj : error LNK2019: unresolved external symbol
> 1>_nextval referenced in function _autoinc autoinc.obj :
> error LNK2019:
> 1>unresolved external symbol _DirectFunctionCall1 referenced
> in function
> 1>_autoinc autoinc.obj : error LNK2019: unresolved external symbol
> 1>_textin referenced in function _autoinc autoinc.obj : error
> LNK2019:
> 1>unresolved external symbol _SPI_getbinval referenced in function
> 1>_autoinc autoinc.obj : error LNK2019: unresolved external symbol
> 1>_SPI_gettypeid referenced in function _autoinc autoinc.obj : error
> 1>LNK2019: unresolved external symbol _errfinish referenced
> in function
> 1>_autoinc autoinc.obj : error LNK2019: unresolved external symbol
> 1>___msvc_errcode referenced in function _autoinc autoinc.obj : error
> 1>LNK2019: unresolved external symbol _errmsg referenced in function
> 1>_autoinc autoinc.obj : error LNK2019: unresolved external symbol
> 1>_errstart referenced in function _autoinc autoinc.obj :
> error LNK2019:
> 1>unresolved external symbol _SPI_fnumber referenced in function
> 1>_autoinc autoinc.obj : error LNK2019: unresolved external symbol
> 1>_MemoryContextAlloc referenced in function _autoinc autoinc.obj :
> 1>error LNK2019: unresolved external symbol _SPI_getrelname
> referenced
> 1>in function _autoinc autoinc.obj : error LNK2019:
> unresolved external
> 1>symbol _elog_finish referenced in function _autoinc autoinc.obj :
> 1>error LNK2019: unresolved external symbol _elog_start referenced in
> 1>function _autoinc .\Release\autoinc\autoinc.dll : fatal
> error LNK1120:
> 1>17 unresolved externals
>
> I checked the project properties for linker options and it
> does list Release\postgres\postgres.lib in the additional
> dependencies list.
>
> Any ideas? Am I missing something?
>
>
> --
> A penny saved is ridiculous.
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2006-10-03 05:43:56 Re: src/tools/msvc usage instructions
Previous Message ITAGAKI Takahiro 2006-10-03 04:02:58 Re: Another idea for dealing with cmin/cmax