[2187] in Kerberos_V5_Development
Re: Comments on Krb5-nt-alpha1 - Using Borland C++
daemon@ATHENA.MIT.EDU (Sean Moore)
Mon Jan 27 15:27:52 1997
Date: Mon, 27 Jan 1997 15:29:30 -0500
To: krbdev@MIT.EDU
From: Sean Moore <sean.moore@raleigh.hcl.com>
Cc: deengert@anl.gov
At 08:29 PM 1/25/97 -0500, Doug Engert wrote:
> (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.
No def file is needed just use implib with any dll as
an argument.
> (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.
Yes __declspec(dllimport) is MS specific but please dont
take it out because it is a speed enhancment for apps
but just check for
#ifdef _MSC_VER
>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.
The two are unrelated because any *.lib you make with one
compiler is not going to useable by the other.
sean