c++ - VC11 LNK1107 referencing a header file -
so i've looked 2 days solution problem, else getting error seems linking against dll instead of lib. however, doesn't seem case me, here am.
i'm trying build project in visual studio 2012 using vc110 (vs2012) toolchain. however, whenever build project, following linker error build log (detailed verbosity):
1>task "link" 1> environment variables passed tool: 1> vs_unicode_output=1344 1> c:\program files (x86)\microsoft visual studio 11.0\vc\bin\x86_amd64\link.exe /errorreport:prompt /out:"..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_out/debug\editorservicemgr.exe" /incremental /nologo /libpath:s:\twk_amf\implementation\editorservicemgr\proj\win\vc9\..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_inter/editorservicemgr/debug\..\..\..\..\..\..\external\trolltech_qt4\lib\win\x64\debug msvcrtd.lib qtcored4.lib qtguid4.lib qtxmld4.lib qtnetworkd4.lib qtuitoolsd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nodefaultlib /nodefaultlib:libc.lib /nodefaultlib:libcd.lib /nodefaultlib:libcp.lib /nodefaultlib:libcpd.lib /nodefaultlib:libci.lib /nodefaultlib:libcid.lib /nodefaultlib:libcmt.lib /nodefaultlib:libcmtd.lib /nodefaultlib:libcpmt.lib /nodefaultlib:libcpmtd.lib /nodefaultlib:libcimt.lib /nodefaultlib:libcimtd.lib /manifest /manifestuac:"level='asinvoker' uiaccess='false'" /manifest:embed /debug /pdb:"..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_out/debug\editorservicemgr.pdb" /subsystem:console /tlbid:1 /dynamicbase /nxcompat /implib:"..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_out/debug\editorservicemgr.lib" /machine:x64 ..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_inter/editorservicemgr/debug\editorservicemgrsvc.h 1> ..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_inter/editorservicemgr/debug\editorservicemgrsvc.rc 1> ..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_inter/editorservicemgr/debug\editorservicemgrsvc.res 1> ..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_out/debug\editorservicemgrsvc.dll 1> ..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_inter/editorservicemgr/debug\editorservicemgr.res 1> ..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_inter/editorservicemgr/debug\editorservicemgrsvc.obj 1> tracking command: 1> c:\program files (x86)\microsoft sdks\windows\v8.0a\bin\netfx 4.0 tools\tracker.exe /a /d c:\windows\microsoft.net\framework\v4.0.30319\filetracker.dll /i s:\twk_results_win\viewlocal\x64\mc_inter\editorservicemgr\debug /r "s:\twk_results_win\viewlocal\x64\mc_inter\editorservicemgr\debug\editorservicemgr.res|s:\twk_results_win\viewlocal\x64\mc_inter\editorservicemgr\debug\editorservicemgrsvc.h|s:\twk_results_win\viewlocal\x64\mc_inter\editorservicemgr\debug\editorservicemgrsvc.obj|s:\twk_results_win\viewlocal\x64\mc_inter\editorservicemgr\debug\editorservicemgrsvc.rc|s:\twk_results_win\viewlocal\x64\mc_inter\editorservicemgr\debug\editorservicemgrsvc.res|s:\twk_results_win\viewlocal\x64\mc_out\debug\editorservicemgrsvc.dll" /b msbuildconsole_cancelevent31ad2214810446c299127f83382c747d /c "c:\program files (x86)\microsoft visual studio 11.0\vc\bin\x86_amd64\link.exe" /errorreport:prompt /out:"..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_out/debug\editorservicemgr.exe" /incremental /nologo /libpath:s:\twk_amf\implementation\editorservicemgr\proj\win\vc9\..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_inter/editorservicemgr/debug\..\..\..\..\..\..\external\trolltech_qt4\lib\win\x64\debug msvcrtd.lib qtcored4.lib qtguid4.lib qtxmld4.lib qtnetworkd4.lib qtuitoolsd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nodefaultlib /nodefaultlib:libc.lib /nodefaultlib:libcd.lib /nodefaultlib:libcp.lib /nodefaultlib:libcpd.lib /nodefaultlib:libci.lib /nodefaultlib:libcid.lib /nodefaultlib:libcmt.lib /nodefaultlib:libcmtd.lib /nodefaultlib:libcpmt.lib /nodefaultlib:libcpmtd.lib /nodefaultlib:libcimt.lib /nodefaultlib:libcimtd.lib /manifest /manifestuac:"level='asinvoker' uiaccess='false'" /manifest:embed /debug /pdb:"..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_out/debug\editorservicemgr.pdb" /subsystem:console /tlbid:1 /dynamicbase /nxcompat /implib:"..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_out/debug\editorservicemgr.lib" /machine:x64 ..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_inter/editorservicemgr/debug\editorservicemgrsvc.h 1> ..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_inter/editorservicemgr/debug\editorservicemgrsvc.rc 1> ..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_inter/editorservicemgr/debug\editorservicemgrsvc.res 1> ..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_out/debug\editorservicemgrsvc.dll 1> ..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_inter/editorservicemgr/debug\editorservicemgr.res 1> ..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_inter/editorservicemgr/debug\editorservicemgrsvc.obj 1>..\..\..\..\..\..\twk_results_win/viewlocal/x64/mc_inter/editorservicemgr/debug\editorservicemgrsvc.h : fatal error lnk1107: invalid or corrupt file: cannot read @ 0x5f2 1> command exited code 1107. 1>done executing task "link" -- failed.
from build output, thought linker might trying link against header file, haven't been able find evidence of that.
the file referenced here, editorservicemgrsvc.h
, contains macro definitions, no includes. header file referenced in rc file, , included symbol header file. furthermore, there libs within additional dependencies of project's property pages.
i put can in addition build output, if needed, may not able put since i'm working on proprietary code. ideas of what's happening here?
edit:
note project auto-converted visual studio 2008 project format.
i sorry cannot comment don't have minimum reputation. here's suggestion.
try using #error macro around editorservicemgrsvc.h header file , inside it. , use header guard file.
with might know error coming from.
Comments
Post a Comment