Reputation: 83
Everytime I try to run that simple code, my VS 2010 Ultimate crashes. And that includes all other programs. It worked before, without any problem. I have also re-installed it, but still the same. Im talking about C++
Error:
Error 1 error LNK1123: failure during conversion to COFF: file invalid or corrupt d:\Users\ADMIN\documents\visual studio 2010\Projects\asasa\asasa\
CODE:
#include <iostream>
using namespace std;
void main(){
cout << "Hello World";
}
OUTPUT:
'Test.exe': Loaded 'D:\Users\ADMIN\Documents\Visual Studio 2010\Projects\Test\Debug\Test.exe', Symbols loaded.
'Test.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'Test.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'Test.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file'Test.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded.
'Test.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
The program '[7164] Test.exe: Native' has exited with code 0 (0x0).
CODE 2:
#include <iostream>
using namespace std;
int main(){
string s;
cout << "Write a bunch of text: ";
getline(cin, s);
cout << "You typed: " << s << endl;
return 0;
}
I also get this related to VMWare. Could VMWare be the problem? https://docs.google.com/file/d/0B2zBo690ggSdNXQ2RXp0ejZ1cGM/edit
Upvotes: 0
Views: 416
Reputation: 3860
I think you have an 'incremental link' problem.
set incremental linking to "NO" in the project's liker properties (project properties > configuration properties > Linker > Enable incremental linking: no)
Installing VS2010 SP1 will also resolve this.
MSDN forum link 1
MSDN forum link 2
Upvotes: 3