ODBC X64 impossible de linker
bonjour,
j'essaie de construire une dll utilisant les librairies odbc. le tout etant sous win7 et en 64 bit
j'ai visual studio 9.0 et la seul librairie que j'ai trouver c'est
C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib\odbc32.lib
or il y a un 32 dans le nom, ce qui me semble bizrre :)
j'ai quand meme essayer de linker et j'obtiens les erreurs suivantes
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
cl /W3 /LDd runtime\rcqodbc.obj runtime\odbc_function_utility.obj runtime\rcqsq
l.obj C:\yafl\CT\bignum.obj C:\yafl\CT\CT_convert.obj runtime\error.obj runtime\
profiler.obj runtime\rcqstruct.obj runtime\utils.obj \
-DPROFILER_MODE -D_CRT_SECURE_NO_DEPRECATE -Zi "C:\Program Files\Microsoft SDK
s\Windows\v6.0A\lib\odbc32.lib" -DL_RCQ_DLL
Microsoft (R) C/C++ Optimizing Compiler Version 15.00.21022.08 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) Incremental Linker Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
/out:rcqodbc.dll
/dll
/implib:rcqodbc.lib
/debug
runtime\rcqodbc.obj
runtime\odbc_function_utility.obj
runtime\rcqsql.obj
C:\yafl\CT\bignum.obj
C:\yafl\CT\CT_convert.obj
runtime\error.obj
runtime\profiler.obj
runtime\rcqstruct.obj
runtime\utils.obj
"C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib\odbc32.lib"
Creating library rcqodbc.lib and object rcqodbc.exp
rcqodbc.obj : error LNK2019: unresolved external symbol SQLDriverConnect referen
ced in function driver_connect_db
rcqodbc.obj : error LNK2019: unresolved external symbol SQLSetEnvAttr referenced
in function driver_connect_db
rcqodbc.obj : error LNK2019: unresolved external symbol SQLAllocHandle reference
d in function driver_connect_db
odbc_function_utility.obj : error LNK2001: unresolved external symbol SQLAllocHa
ndle
rcqodbc.obj : error LNK2019: unresolved external symbol SQLExecute referenced in
function exec
rcqodbc.obj : error LNK2019: unresolved external symbol SQLPrepare referenced in
function exec
rcqodbc.obj : error LNK2019: unresolved external symbol SQLFreeStmt referenced i
n function close_cursor
rcqodbc.obj : error LNK2019: unresolved external symbol SQLExecDirect referenced
in function commit
odbc_function_utility.obj : error LNK2019: unresolved external symbol SQLGetDiag
Rec referenced in function trace_odbc_error
odbc_function_utility.obj : error LNK2019: unresolved external symbol SQLGetDiag
Field referenced in function trace_odbc_error
odbc_function_utility.obj : error LNK2019: unresolved external symbol SQLBindPar
ameter referenced in function fill_obdc_bind_struct
odbc_function_utility.obj : error LNK2019: unresolved external symbol SQLGetData
referenced in function extract_result_from_packed
odbc_function_utility.obj : error LNK2019: unresolved external symbol SQLDescrib
eCol referenced in function fetch_results
odbc_function_utility.obj : error LNK2019: unresolved external symbol SQLFetch r
eferenced in function fetch_results
rcqodbc.dll : fatal error LNK1120: 13 unresolved externals
make[1]: *** [RCQODBC.dll] Error 2
make[1]: Leaving directory `c:/yafl/cobol/preprocessor'
make: *** [odbc] Error 2 |
qqn a t il une idée ? ou pourrais je trouver odbc64.lib ?
merci
a++