Click to See Complete Forum and Search --> : Linking to ODBC32.dll (PLEASE HELP)


Programm3r
06-06-2007, 02:50 AM
Hi all,

Can someone please show me how to link to the odbc32.dll, cause I keep receiveing the following errors::confused: :confused:

[Linker Error] Error: Unresolved external 'SQLDisconnect' referenced from ODBCCORE.OBJ
[Linker Error] Error: Unresolved external 'SQLFreeHandle' referenced from ODBCCORE.OBJ
[Linker Error] Error: Unresolved external 'SQLSetEnvAttr' referenced from ODBCCORE.OBJ
[Linker Error] Error: Unresolved external 'SQLAllocHandle' referenced from ODBCCORE.OBJ

Viorel
06-06-2007, 04:04 AM
In Visual Studio 2005, I think you have to add odbc32.lib to Project Properties --> Linker --> Input --> Additional Dependencies field. Then recompile the project.

I hope this helps.

Programm3r
06-06-2007, 04:16 AM
Yes, I know exactly how to to it in VS 2005, but how does one do it in Borland Developer Studio 2006 ????

Can you please help me???

jonnin
06-06-2007, 11:26 AM
it should still be basically the same, add a library and .h file through the menus (somehow?)

Programm3r
06-07-2007, 02:56 AM
it should still be basically the same, add a library and .h file through the menus (somehow?)

Could you be more specific???? I understand what must happen, but how is my question .....

jonnin
06-07-2007, 09:31 AM
I do not have borland, but there has to be a simple menu item for it and it should be covered in the help.