Skip site navigation (1) Skip section navigation (2)

Re: [Q] specifying bigint

From: "V S P" <toreason(at)fastmail(dot)fm>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Re: [Q] specifying bigint
Date: 2009-03-29 21:23:44
Message-ID: 1238361824.4933.1307906195@webmail.messagingengine.com (view raw or flat)
Thread:
Lists: pgsql-odbc
Hi,

When trying to build ODBC
(_08_03_0400)  on windows using VC 2008 compiler I am getting
link errors (compilation was ok with just type missmatch warnings)

------ Build started: Project: psqlODBC, Configuration: Release Win32
------
Linking...
   Creating library psqlodbc35w.lib and object psqlodbc35w.exp
LINK : warning LNK4199: /DELAYLOAD:libeay32.dll ignored; no imports
found from libeay32.dll
LINK : warning LNK4199: /DELAYLOAD:XOLEHLP.DLL ignored; no imports found
from XOLEHLP.DLL
socket.obj : error LNK2001: unresolved external symbol _getaddrinfo(at)16
socket.obj : error LNK2001: unresolved external symbol _freeaddrinfo(at)4
socket.obj : error LNK2019: unresolved external symbol
__imp__getnameinfo(at)28 referenced in function _SOCK_connect_to
psqlodbc35w.dll : fatal error LNK1120: 3 unresolved externals
Build log was saved at "file://c:\temp\pgODBCsrc\Release\BuildLog.htm"
psqlODBC - 4 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========


------------------------------------

what is missing in the link line?
I have

/OUT:"psqlodbc35w.dll" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Program
Files\PostgreSQL\8.3\lib" /LIBPATH:"C:\usr\local\openssl-rel\lib" /DLL
/MANIFEST
/MANIFESTFILE:".\Release\psqlodbc35w.dll.intermediate.manifest"
/MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEF:".\psqlodbc.def"
/DELAYLOAD:"libpq.dll" /DELAYLOAD:"ssleay32.dll"
/DELAYLOAD:"libeay32.dll" /DELAYLOAD:"secur32.dll"
/DELAYLOAD:"crypt32.dll" /DELAYLOAD:"XOLEHLP.DLL" /PDB:"psqlodbc35w.pdb"
/SUBSYSTEM:WINDOWS /DYNAMICBASE:NO /IMPLIB:"psqlodbc35w.lib"
/MACHINE:X86 /ERRORREPORT:PROMPT kernel32.lib user32.lib gdi32.lib
winspool.lib comdlg32.lib XOleHlp.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib
libpq.lib ssleay32.lib libeay32.lib  kernel32.lib user32.lib gdi32.lib
winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib DelayImp.lib


I am using the supplied proj file, and wsock32 is included.

----------



thanks,
Vlad
-- 
  V S P
  toreason(at)fastmail(dot)fm

-- 
http://www.fastmail.fm - Access your email from home and the web


In response to

pgsql-odbc by date

Next:From: Hiroshi InoueDate: 2009-03-30 03:15:28
Subject: Re: [Q] specifying bigint
Previous:From: Hiroshi SaitoDate: 2009-03-29 13:28:58
Subject: Re: Release plan

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group