Solved

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

Posted on 2006-06-23
2
1,565 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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

772 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

11 Experts available now in Live!

Get 1:1 Help Now