Solved

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

Posted on 2006-06-23
2
1,579 Views
Last Modified: 2013-11-20
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!!
0
Comment
Question by:james567
2 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 500 total points
ID: 16974136
finalpublickey.snk contains strong name for this library. If Microsoft doesn't provide this file, it is impossible to build this Dll.
Make search in the src directory for ".snk" word. You will find two files with "finalpublickey.snk" string. Try to remove this string and build again. But even in this build succeeds, I think that resulting library cannot be used, because it doesn't contain strong name.
0
 

Author Comment

by:james567
ID: 17012271
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
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
viewing source code from eclipse 13 88
format the code in java 6 86
Window placement 17 75
Problem to open Excel file 15 97
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now