www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - updating libraries

reply rudy <rudy_member pathlink.com> writes:
odbc32.lib is from 1995 and seems to lack odbc 3.x functions. Is there some way
I can update this library, either a download or creating it from a newer odbc32
library?

Thanks!
Jun 17 2004
next sibling parent reply =?ISO-8859-1?Q?Julio_C=E9sar_Carrascal_Urquijo?= writes:
rudy wrote:
 odbc32.lib is from 1995 and seems to lack odbc 3.x functions. Is there some way
 I can update this library, either a download or creating it from a newer odbc32
 library?
 
 Thanks!

implib -s odbc32.dll Usually does the trick. -- Julio César Carrascal Urquijo http://jcesar.f2o.org/
Jun 17 2004
parent reply rudy <rudy_member pathlink.com> writes:
Great - thanks!

In article <cat4l8$2buq$1 digitaldaemon.com>,
=?ISO-8859-1?Q?Julio_C=E9sar_Carrascal_Urquijo?= says...
rudy wrote:
 odbc32.lib is from 1995 and seems to lack odbc 3.x functions. Is there some way
 I can update this library, either a download or creating it from a newer odbc32
 library?
 
 Thanks!

implib -s odbc32.dll Usually does the trick. -- Julio César Carrascal Urquijo http://jcesar.f2o.org/

Jun 20 2004
parent reply rudy <rudy_member pathlink.com> writes:
hmmm. I tried implib, Borland's implib, using odbc32.def instead of odbc32.dll,
but haven't been able to create anything the linker likes. I keep getting "Error
42: Symbol Undefined _SQLAllocHandle 12". I can get "_SQLAllocHandle" to appear
in my new odbc32.lib, but not "_SQLAllocHandle 12". Also, "implib -s" doesn't
work for me, I have to type "implib /s" - maybe I have the wrong version
(7.6B1n)?


In article <cb4hcj$tbo$1 digitaldaemon.com>, rudy says...
Great - thanks!

In article <cat4l8$2buq$1 digitaldaemon.com>,
=?ISO-8859-1?Q?Julio_C=E9sar_Carrascal_Urquijo?= says...
rudy wrote:
 odbc32.lib is from 1995 and seems to lack odbc 3.x functions. Is there some way
 I can update this library, either a download or creating it from a newer odbc32
 library?
 
 Thanks!

implib -s odbc32.dll Usually does the trick. -- Julio César Carrascal Urquijo http://jcesar.f2o.org/


Jun 20 2004
next sibling parent reply "Carlos Santander B." <carlos8294 msn.com> writes:
"rudy" <rudy_member pathlink.com> escribió en el mensaje
news:cb523i$1lnm$1 digitaldaemon.com
| hmmm. I tried implib, Borland's implib, using odbc32.def instead of
odbc32.dll,
| but haven't been able to create anything the linker likes. I keep getting
"Error
| 42: Symbol Undefined _SQLAllocHandle 12". I can get "_SQLAllocHandle" to
appear
| in my new odbc32.lib, but not "_SQLAllocHandle 12". Also, "implib -s"
doesn't
| work for me, I have to type "implib /s" - maybe I have the wrong version
| (7.6B1n)?
|
|

Use dmd's: the formats are different. And, yes, switches are done with "/".
About the symbols, odbc32.dll defines functions with C linkage, so use
extern(C) instead of extern(Windows).

-----------------------
Carlos Santander Bernal
Jun 20 2004
parent rudy <rudy_member pathlink.com> writes:
Cool - it works. Thanks much!

In article <cb59fe$201n$1 digitaldaemon.com>, Carlos Santander B. says...
"rudy" <rudy_member pathlink.com> escribió en el mensaje
news:cb523i$1lnm$1 digitaldaemon.com
| hmmm. I tried implib, Borland's implib, using odbc32.def instead of
odbc32.dll,
| but haven't been able to create anything the linker likes. I keep getting
"Error
| 42: Symbol Undefined _SQLAllocHandle 12". I can get "_SQLAllocHandle" to
appear
| in my new odbc32.lib, but not "_SQLAllocHandle 12". Also, "implib -s"
doesn't
| work for me, I have to type "implib /s" - maybe I have the wrong version
| (7.6B1n)?
|
|

Use dmd's: the formats are different. And, yes, switches are done with "/".
About the symbols, odbc32.dll defines functions with C linkage, so use
extern(C) instead of extern(Windows).

-----------------------
Carlos Santander Bernal

Jun 20 2004
prev sibling parent J C Calvarese <jcc7 cox.net> writes:
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

rudy wrote:
 hmmm. I tried implib, Borland's implib, using odbc32.def instead of odbc32.dll,
 but haven't been able to create anything the linker likes. I keep getting
"Error
 42: Symbol Undefined _SQLAllocHandle 12". I can get "_SQLAllocHandle" to appear
 in my new odbc32.lib, but not "_SQLAllocHandle 12". Also, "implib -s" doesn't
 work for me, I have to type "implib /s" - maybe I have the wrong version
 (7.6B1n)?

You probably need to use a .def file with implib (such as the attached one). Often when I create a .def file, it's a trial-and-error approach, so you'll likely need to add some definitions for functions that you're using that I didn't use, but the linker hints at what they should be. I think this is the proper syntax with DM's implib: implib odbc32.lib odbc32.def
 In article <cb4hcj$tbo$1 digitaldaemon.com>, rudy says...
 
Great - thanks!

In article <cat4l8$2buq$1 digitaldaemon.com>,
=?ISO-8859-1?Q?Julio_C=E9sar_Carrascal_Urquijo?= says...

rudy wrote:

odbc32.lib is from 1995 and seems to lack odbc 3.x functions. Is there some way
I can update this library, either a download or creating it from a newer odbc32
library?

Thanks!

implib -s odbc32.dll Usually does the trick. -- Julio César Carrascal Urquijo http://jcesar.f2o.org/



-- Justin (a/k/a jcc7) http://jcc_7.tripod.com/d/
Jun 20 2004
prev sibling parent "Carlos Santander B." <carlos8294 msn.com> writes:
"rudy" <rudy_member pathlink.com> escribió en el mensaje
news:cat19v$26up$1 digitaldaemon.com
| odbc32.lib is from 1995 and seems to lack odbc 3.x functions. Is there
some way
| I can update this library, either a download or creating it from a newer
odbc32
| library?
|
| Thanks!

Use implib on odbc32.dll

-----------------------
Carlos Santander Bernal
Jun 17 2004