everytime i goto compile i get this error:
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "C:/Program Files/Microsoft Visual Studio
10.0/VC/bin/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Build/CMakeFiles/CMakeTmp
Run Build Command:C:WindowsMicrosoft.NETFrameworkv4.0.30319MSBuild.exe
cmTryCompileExec960081993.vcxproj /p:Configuration=Debug
/p:VisualStudioVersion=10.0
Microsoft ® Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.17929]
Copyright © Microsoft Corporation. All rights reserved.
Build started 11/18/2012 4:43:16 AM.
Project "C:BuildCMakeFilesCMakeTmpcmTryCompileExec960081993.vcxproj" on
node 1 (default targets).
PrepareForBuild:
Creating directory "cmTryCompileExec960081993.dirDebug".
Creating directory "C:BuildCMakeFilesCMakeTmpDebug".
InitializeBuildStatus:
Creating "cmTryCompileExec960081993.dirDebugcmTryCompileExec960081993.unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:Program FilesMicrosoft Visual Studio 10.0VCbinCL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec960081993.dirDebug" /Fd"C:/Build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec960081993.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c /Zm1000
Microsoft ® 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
Copyright © Microsoft Corporation. All rights reserved.
cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec960081993.dirDebug" /Fd"C:/Build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec960081993.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c /Zm1000
testCCompiler.c
ManifestResourceCompile:
C:Program FilesMicrosoft SDKsWindowsv7.0Abinrc.exe /nologo /fo"cmTryCompileExec960081993.dirDebugcmTryCompileExec960081993.exe.embed.manifest.res" cmTryCompileExec960081993.dirDebugcmTryCompileExec960081993_manifest.rc
Link:
C:Program FilesMicrosoft Visual Studio 10.0VCbinlink.exe /ERRORREPORT:QUEUE /OUT:"C:BuildCMakeFilesCMakeTmpDebugcmTryCompileExec960081993.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /ManifestFile:"cmTryCompileExec960081993.dirDebugcmTryCompileExec960081993.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:/Build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec960081993.pdb" /SUBSYSTEM:CONSOLE /STACK:"10000000" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec960081993.lib" /MACHINE:X86 cmTryCompileExec960081993.dirDebugcmTryCompileExec960081993.exe.embed.manifest.res
cmTryCompileExec960081993.dirDebugtestCCompiler.obj /machine:X86 /debug
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid
or corrupt
[C:BuildCMakeFilesCMakeTmpcmTryCompileExec960081993.vcxproj]
Done Building Project
"C:BuildCMakeFilesCMakeTmpcmTryCompileExec960081993.vcxproj" (default
targets) -- FAILED.
Build FAILED.
"C:BuildCMakeFilesCMakeTmpcmTryCompileExec960081993.vcxproj" (default
target) (1) ->
(Link target) ->
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:BuildCMakeFilesCMakeTmpcmTryCompileExec960081993.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.44
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:12 (project)
if somebody could please help me i would appreciate it ive been trying to find how to fix it for like 3 hours and starting to get aggravated