Link to home
Start Free TrialLog in
Avatar of james567
james567

asked on

Compiling MFC80.DLL: Error reading key file 'finalpublickey.snk'

I have Visual Studio 2005 installed. I tried to compile MFC80.DLL by typing the following lines in command prompt:

        cd C:\Program Files\Microsoft Visual Studio 8\VC\bin
        vcvars32.bat
        cd C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src
        nmake /f atlmfc.mak MFC LIBNAME="MFC80"

The compiler runs for about 20 minutes and this is the error message that appeared at the end:

        Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
        Copyright (C) Microsoft Corporation.  All rights reserved.

                if not exist INTEL\$udll.w mkdir INTEL\$udll.w
                link.exe @C:\DOCUME~1\james\LOCALS~1\Temp\nm1C2.tmp
        LINK : fatal error LNK1256: ALINK operation failed (80040414) : Error reading key file 'finalpublickey.snk' -- The system cannot find the file specified.
        NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\link.exe"' : return code '0x4e8'
        Stop.
        NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe"' : return code '0x2'
        Stop.
        NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe"' : return code '0x2'
        Stop.

I'm wondering if anyone knows how to avoid this error?

Thanks!!
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of james567
james567

ASKER

Thanks for your help ~

I tried removing all lines with the .snk words but still could not compile it. However, I got around the problem and I don't need to compile the library anymore. =)

James