ODBC driver linking with MS C++ 6.0

From: Rafael dos Santos Cubas <rsc01(at)inf(dot)ufpr(dot)br>
To:
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: ODBC driver linking with MS C++ 6.0
Date: 2002-10-02 14:51:20
Message-ID: Pine.LNX.4.21.0210021143260.14660-100000@dupond.inf.ufpr.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Dave helped me to fix the precompiled headers problem,
so i gone ahead with the compilation process,
i got a sintax error :
--------------------Configuration: psqlodbc - Win32
Release--------------------
Compiling...
psqlodbc.cpp
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT VISUAL
STUDIO\MyProjects\psqlodbc\psqlodbc.cpp(51) : error C2440: '=' : cannot
convert from 'void *' to 'struct HINSTANCE__ *'
Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
Error executing cl.exe.
psqlodbc.dll - 1 error(s), 0 warning(s)

to fix it i just added a cast after '=', it worked fine. But at the
linking time i got a lot of error and i have no idea how to fix it.
this is the error message:
-------------------Configuration: psqlodbc - Win32 Release--------------------
Linking...
qresult.obj : error LNK2001: unresolved external symbol _globals
results.obj : error LNK2001: unresolved external symbol _globals
socket.obj : error LNK2001: unresolved external symbol _globals
statement.obj : error LNK2001: unresolved external symbol _globals
info.obj : error LNK2001: unresolved external symbol _globals
misc.obj : error LNK2001: unresolved external symbol _globals
options.obj : error LNK2001: unresolved external symbol _globals
pgtypes.obj : error LNK2001: unresolved external symbol _globals
connection.obj : error LNK2001: unresolved external symbol _globals
convert.obj : error LNK2001: unresolved external symbol _globals
dlg_specific.obj : error LNK2001: unresolved external symbol _globals
execute.obj : error LNK2001: unresolved external symbol _globals
drvconn.obj : error LNK2001: unresolved external symbol _s_hModule
setup.obj : error LNK2001: unresolved external symbol _s_hModule
psqlodbc.obj : error LNK2001: unresolved external symbol "void __cdecl
getGlobalDefaults(char *,char *,char)" (?getGlobalDefaults@@YAXPAD0D(at)Z)
Release/psqlodbc.dll : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.

psqlodbc.dll - 16 error(s), 0 warning(s)

does any body can help?
Thanks a lot for your attention.

Rafael

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message lists 2002-10-03 03:00:45 Re: ODBC + MS-Access fails with MD5 pwds if not specified
Previous Message Dave Page 2002-10-02 14:40:27 Re: ODBC driver compilation with MS C++ 6.0