[2180] in Kerberos_V5_Development
Comments on Krb5-nt-alpha1 - Using Borland C++
daemon@ATHENA.MIT.EDU (Doug Engert)
Sat Jan 25 20:30:18 1997
Date: Sat, 25 Jan 1997 19:29:05 -0600
From: Doug Engert <deengert@anl.gov>
Reply-To: deengert@anl.gov
To: krbdev@MIT.EDU
Cc: deengert@anl.gov
I have compiled the krb5-nt-alpha1 distribution on Windows95
using the Microsoft C++ 4.2 compiler without problems. But I have
an application which is written in Borland C++.
To get this application to beable to use the krb5_32.dll
required me to do two additional steps:
(1) I was unable to use the krb5_32.lib which was created
by the make. But I was able to create a new
krb5_32.lib which the Borland C++ 4.51 linker
could use. This was done using the krb5_32.def file
as input to the Borland implib command.
(2) I Had to add defines for:
KRB5_DLLIMP=
KRB5_CALLCONV=__stdcall
KRB5_CALLCONV_C=__cdecl
The defines were needed since the __declspec(dllimport)
is a Microsodt specific extention to the language. By defining
the above, this circumvented the definition of these in win-mac.h
when the krb5.h file is included in the application.
I am not sure if the above two problems are related, but
please reconsider the use of __declspec(...) at least when
used outside the DLL.
--
Douglas E. Engert <DEEngert@anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444