Solved

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

Posted on 2006-06-23
2
1,610 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Separate into files by filename 12 91
Generic progress indicator 6 119
noX challenge 17 135
moto 4g phone enable finger print 4 49
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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…
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.

730 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