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

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’”