Solved

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

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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
Error on moodle after upgrade 3 140
Best tools for Backup and restore of Wordpress site 6 57
zeroMAx challenge 20 111
Fibonacci challenge 11 132
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: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

839 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