LINK : fatal error LNK1104: cannot open file ‘xxx.map’ 2


I was upgrading my IDE from VS 2008 to VS2010 when I located this issue.

After google it for a long time, I final found this webpage from Microsoft, telling me that it is a bug of VS2010, http://connect.microsoft.com/VisualStudio/feedback/details/665896.

And then I found that this bug has not been fixed yet per this post: https://connect.microsoft.com/VisualStudio/feedback/details/540975/lnk1104-intermittantly-when-building

However, it’s all about .map file for your library, and after discussed with the team leader, we decided let go of the .map file. and this issue no more bugs me.

LINK fatal error LNK1104-cannot open file xxx.map

Here is the detail error message:

1>—— Rebuild All started: Project: mediawrapper, Configuration: Debug Win32 ——
1>  videorenderwrapper.cpp
1>  StdAfx.cpp
1>  resamplerwrapper.cpp
1>  mediawrapper.cpp
1>  level_indicator_wrapper.cc
1>  audioprocwrapper.cpp
1>e:\developer\root\40-platform\mediawrapper_vcx\source\audioprocwrapper.cpp(67): warning C4305: ‘return’ : truncation from ‘int’ to ‘bool’
1>  audiodevicewrapper.cpp
1>  Generating Code…
1>     Creating library E:\Developer\root\40-platform\mediawrapper_vcx\prj_win32\MediaWrapperDll\Debug\mediawrapper.lib and object E:\Developer\root\40-platform\mediawrapper_vcx\prj_win32\MediaWrapperDll\Debug\mediawrapper.exp
1>     Creating library E:\Developer\root\40-platform\mediawrapper_vcx\prj_win32\MediaWrapperDll\Debug\mediawrapper.lib and object E:\Developer\root\40-platform\mediawrapper_vcx\prj_win32\MediaWrapperDll\Debug\mediawrapper.exp
1>LINK : fatal error LNK1104: cannot open file ‘E:\Developer\root\40-platform\mediawrapper_vcx\prj_win32\MediaWrapperDll\Debug\mediawrapper.map’
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


Leave a comment

Your email address will not be published. Required fields are marked *

2 thoughts on “LINK : fatal error LNK1104: cannot open file ‘xxx.map’

  • Wireless Hdmi

    Simply want to say your article is as astonishing.
    The clearness in your post is just great and i could assume you’re an expert on this subject. Fine with your permission let me to grab your RSS feed to keep updated with forthcoming post. Thanks a million and please keep up the enjoyable work.

  • vist

    I would like to point out my appreciation for your kind-heartedness in support of persons who should have help on this particular niche. Your personal commitment to passing the message up and down became extraordinarily effective and have all the time empowered others much like me to arrive at their pursuits. Your amazing insightful help can mean so much a person like me and still more to my peers. Regards; from each one of us.