Re: src/tools/msvc usage instructions - Mailing list pgsql-hackers
From | Magnus Hagander |
---|---|
Subject | Re: src/tools/msvc usage instructions |
Date | |
Msg-id | 6BCB9D8A16AC4241919521715F4D8BCEA0FC0B@algol.sollentuna.se Whole thread Raw |
In response to | Re: src/tools/msvc usage instructions (Jeremy Drake <pgsql@jdrake.com>) |
Responses |
Re: src/tools/msvc usage instructions
|
List | 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@jdrake.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. >
pgsql-hackers by date: