[OpenAFS-devel] using the AFS libraries under Win2k

Burcin Erocal burcin@math.bilgi.edu.tr
Mon, 26 Aug 2002 19:59:30 +0300


On Mon, 26 Aug 2002 12:25:50 -0400 (EDT)
Derrick J Brashear <shadow@dementia.org> wrote:

> On Mon, 26 Aug 2002, Burcin Erocal wrote:
> 
> > Trying to link using the libraries afsauthent.lib and libafsconf.lib
> > (the ones present on the client distribution) doesn't work, the
> > linker complains about unresolved external symbols. 
> 
> does it tell you which symbols? i'd expect afsauthent.lib and
> afsrpc.lib would be sufficient.

The relevant part from error output:
-------------------------------------
.....
    Searching C:\Program Files\Microsoft SDK\lib\user32.lib:
    Searching C:\Program Files\Microsoft SDK\lib\gdi32.lib:
    Searching C:\Program Files\Microsoft SDK\lib\winspool.lib:
    Searching C:\Program Files\Microsoft SDK\lib\comdlg32.lib:
    Searching C:\Program Files\Microsoft SDK\lib\advapi32.lib:
    Searching C:\Program Files\Microsoft SDK\lib\shell32.lib:
    Searching C:\Program Files\Microsoft SDK\lib\ole32.lib:
    Searching C:\Program Files\Microsoft SDK\lib\oleaut32.lib:
    Searching C:\Program Files\Microsoft SDK\lib\uuid.lib:
    Searching C:\Program Files\Microsoft SDK\lib\odbc32.lib:
    Searching C:\Program Files\Microsoft SDK\lib\odbccp32.lib:
    Searching C:\TMP\WORK\OPENAFS-1.2.6\DEST\LIB\afsauthent.lib:
    Searching C:\TMP\WORK\OPENAFS-1.2.6\DEST\LIB\libafsconf.lib:
    Searching C:\TMP\WORK\OPENAFS-1.2.6\DEST\LIB\AFS\afskauth.lib:
    Searching C:\TMP\WORK\OPENAFS-1.2.6\DEST\LIB\afsrpc.lib:
    Searching C:\TMP\WORK\OPENAFS-1.2.6\DEST\LIB\afspthread.lib:
    Searching C:\Program Files\Microsoft Visual
Studio\VC98\LIB\LIBCD.lib:
    Searching C:\Program Files\Microsoft Visual
Studio\VC98\LIB\OLDNAMES.lib:
Done Searching Libraries
End Pass1
mykauth.obj : error LNK2001: unresolved external symbol "long __cdecl
ka_Init(int)" (?ka_Init@@YAJH@Z)
Debug/mykauth.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

mykauth.exe - 2 error(s), 0 warning(s)

--------------------------------

I don't have much experience developing under windows, nor using Visual
Studio, but it looks like I have managed to point to the libraries. 

Any suggestions?

Regards
Burcin