ODBC driver compilation with MS C++ 6.0

Поиск
Список
Период
Сортировка
Искать

ODBC driver compilation with MS C++ 6.0

От:
Rafael dos Santos Cubas <rsc01@inf.ufpr.br>
Дата:

I'm trying to compile psqlodbc, from the source that i got
in ftp://ftp.postgresql.org/pub/odbc/versions/old/v06-50-0000/postsrc.zip,
I couldn't find a newest version, using Microsoft Visual C++ 6.0. But it
always return the error message above. I already tried to follow the
compilation
steps described in pgsql-odbc home page, but I got the same error message.

Does anybody can help me?

Thanks

Rafael


 --------------------Configuration: psqlodbc - Win32
Release--------------------
Compiling...
tuplelist.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\tuplelist.c(189) : fatal error
C1010: unexpected end of file while looking for precompiled header
directive
columninfo.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\columninfo.c(161) : fatal error
C1010: unexpected end of file while looking for precompiled header
directive
connection.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\connection.c(1375) : fatal error
C1010: unexpected end of file while looking for precompiled header
directive
convert.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\convert.c(1548) : fatal error C1010: unexpected
end of file while looking for precompiled header directive
dlg_specific.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\dlg_specific.c(867) : fatal error
C1010: unexpected end of file while looking for precompiled header
directive
drvconn.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\drvconn.c(374) : fatal error C1010: unexpected
end of file while looking for precompiled header directive
environ.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\environ.c(479) : fatal error C1010: unexpected
end of file while looking for precompiled header directive
execute.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\execute.c(786) : fatal error C1010: unexpected
end of file while looking for precompiled header directive
info.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\info.c(2787) : fatal error C1010: unexpected
end of file while looking for precompiled header directive
lobj.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\lobj.c(198) : fatal error C1010: unexpected end
of file while looking for precompiled header directive
misc.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\misc.c(275) : fatal error C1010: unexpected end
of file while looking for precompiled header directive
options.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\options.c(622) : fatal error C1010: unexpected
end of file while looking for precompiled header directive
parse.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\parse.c(786) : fatal error C1010: unexpected
end of file while looking for precompiled header directive
pgtypes.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\pgtypes.c(789) : fatal error C1010: unexpected
end of file while looking for precompiled header directive
Generating Code...
Compiling...
psqlodbc.cpp
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\psqlodbc.cpp(129) : fatal error
C1010: unexpected end of file while looking for precompiled header
directive
Generating Code...
Compiling...
qresult.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\qresult.c(621) : fatal error C1010: unexpected
end of file while looking for precompiled header directive
results.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\results.c(1268) : fatal error C1010: unexpected
end of file while looking for precompiled header directive
setup.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\setup.c(413) : fatal error C1010: unexpected
end of file while looking for precompiled header directive
socket.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\socket.c(320) : fatal error C1010: unexpected
end of file while looking for precompiled header directive
statement.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\statement.c(940) : fatal error
C1010: unexpected end of file while looking for precompiled header
directive
Generating Code...
Compiling...
StdAfx.cpp
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\StdAfx.cpp(5) : fatal error C1083: Cannot open
precompiled header file: 'Release/psqlodbc.pch': No such file or directory
Generating Code...
Compiling...
tuple.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\tuple.c(58) : fatal error C1010: unexpected end
of file while looking for precompiled header directive
bind.c
C:\Arquivos de programas\Microsoft Visual
Studio\MyProjects\psqlodbc\bind.c(432) : fatal error C1010: unexpected end
of file while looking for precompiled header directive
Generating Code...
Error executing cl.exe.

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


Rafael


Re: ODBC driver compilation with MS C++ 6.0

От:
"Dave Page" <dpage@vale-housing.co.uk>
Дата:
Hi,

Try switching off precompiled headers in the VC++ project settings.

Regards, Dave.

> -----Original Message-----
> From: Rafael dos Santos Cubas [mailto:rsc01@inf.ufpr.br] 
> Sent: 02 October 2002 13:58
> To: pgsql-odbc@postgresql.org
> Subject: [ODBC] ODBC driver compilation with MS C++ 6.0
> 
> 
> 
> I'm trying to compile psqlodbc, from the source that i got
> in 
> ftp://ftp.postgresql.org/pub/odbc/versions/old/v06-50-0000/pos
> tsrc.zip,
> I couldn't find a newest version, using Microsoft Visual C++ 
> 6.0. But it always return the error message above. I already 
> tried to follow the compilation steps described in pgsql-odbc 
> home page, but I got the same error message.
> 
> Does anybody can help me?
> 
> Thanks
> 
> Rafael
> 
> 
>  --------------------Configuration: psqlodbc - Win32
> Release--------------------
> Compiling...
> tuplelist.c
> C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\tuplelist.c(189) : fatal error
> C1010: unexpected end of file while looking for precompiled 
> header directive columninfo.c C:\Arquivos de 
> programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\columninfo.c(161) : fatal error
> C1010: unexpected end of file while looking for precompiled 
> header directive connection.c C:\Arquivos de 
> programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\connection.c(1375) : fatal error
> C1010: unexpected end of file while looking for precompiled 
> header directive convert.c C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\convert.c(1548) : fatal error 
> C1010: unexpected end of file while looking for precompiled 
> header directive dlg_specific.c C:\Arquivos de 
> programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\dlg_specific.c(867) : fatal error
> C1010: unexpected end of file while looking for precompiled 
> header directive drvconn.c C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\drvconn.c(374) : fatal error 
> C1010: unexpected end of file while looking for precompiled 
> header directive environ.c C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\environ.c(479) : fatal error 
> C1010: unexpected end of file while looking for precompiled 
> header directive execute.c C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\execute.c(786) : fatal error 
> C1010: unexpected end of file while looking for precompiled 
> header directive info.c C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\info.c(2787) : fatal error C1010: 
> unexpected end of file while looking for precompiled header 
> directive lobj.c C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\lobj.c(198) : fatal error C1010: 
> unexpected end of file while looking for precompiled header 
> directive misc.c C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\misc.c(275) : fatal error C1010: 
> unexpected end of file while looking for precompiled header 
> directive options.c C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\options.c(622) : fatal error 
> C1010: unexpected end of file while looking for precompiled 
> header directive parse.c C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\parse.c(786) : fatal error C1010: 
> unexpected end of file while looking for precompiled header 
> directive pgtypes.c C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\pgtypes.c(789) : fatal error 
> C1010: unexpected end of file while looking for precompiled 
> header directive Generating Code... Compiling... psqlodbc.cpp 
> C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\psqlodbc.cpp(129) : fatal error
> C1010: unexpected end of file while looking for precompiled 
> header directive Generating Code... Compiling... qresult.c 
> C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\qresult.c(621) : fatal error 
> C1010: unexpected end of file while looking for precompiled 
> header directive results.c C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\results.c(1268) : fatal error 
> C1010: unexpected end of file while looking for precompiled 
> header directive setup.c C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\setup.c(413) : fatal error C1010: 
> unexpected end of file while looking for precompiled header 
> directive socket.c C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\socket.c(320) : fatal error C1010: 
> unexpected end of file while looking for precompiled header 
> directive statement.c C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\statement.c(940) : fatal error
> C1010: unexpected end of file while looking for precompiled 
> header directive Generating Code... Compiling... StdAfx.cpp 
> C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\StdAfx.cpp(5) : fatal error C1083: 
> Cannot open precompiled header file: 'Release/psqlodbc.pch': 
> No such file or directory Generating Code... Compiling... 
> tuple.c C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\tuple.c(58) : fatal error C1010: 
> unexpected end of file while looking for precompiled header 
> directive bind.c C:\Arquivos de programas\Microsoft Visual
> Studio\MyProjects\psqlodbc\bind.c(432) : fatal error C1010: 
> unexpected end of file while looking for precompiled header 
> directive Generating Code... Error executing cl.exe.
> 
> psqlodbc.dll - 23 error(s), 0 warning(s)
> 
> 
> Rafael
> 
> 
> 
> ---------------------------(end of 
> broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
http://www.postgresql.org/users-lounge/docs/faq.html

Re: ODBC driver compilation with MS C++ 6.0

От:
"Dave Page" <dpage@vale-housing.co.uk>
Дата:


> -----Original Message-----
> From: Rafael dos Santos Cubas [mailto:rsc01@inf.ufpr.br] 
> Sent: 02 October 2002 15:36
> To: Dave Page
> Subject: RE: [ODBC] ODBC driver compilation with MS C++ 6.0
> 
> 
> hi, 
> how do i switch off precompiled headers in the VC++ project 
> settings? i'm sorry about the question but it is my firt time 
> with VC++.

Project -> Settings
Select the required config from the drop down menu.
Select the C/C++ tab.
Select Precompiled Headers from the dropdown on the tab.
Set to Not using precompiled headers.

Regards, Dave.

ODBC driver linking with MS C++ 6.0

От:
Rafael dos Santos Cubas <rsc01@inf.ufpr.br>
Дата:
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@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

FAQ