Debug c++ in Visual Studio

Asked

Viewed 45 times

0

I installed Visual Studio C++ 2010 Express. I created a project using Win32 Console Application, added a New Iten C++ File(.cpp) to this project, but at the time of running the error appears:

1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

1 answer

1

You can disable incremental linkage to get around the problem or you can upgrade to a more modern version...

Project Properties 
   -> Configuration Properties 
       -> Linker (General) 
          -> Enable Incremental Linking -> "No (/INCREMENTAL:NO)"
  • I’ve done it but it’s not spinning,

  • earlier appeared the error q I put in the question now that I did this does not appear the error, but also does not rotate, the screen of the console appears and disappears fast

  • is showing this: The program '[736] Aula1.exe: Native' has exited with code 0 (0x0).

  • is my first program in c++, I want q to write "hello word"

  • #include <stdio. h> int main(int argc, char **argv) ː printf("Hello Word"); Return 0; }

  • it looks like this: #include <stdio. h> int main(int argc, char **argv) ː printf("Hello Word"); int hold; Cin >> wait; Return 0; }

  • but it appears this: The program '[3924] Aula1.exe: Native' has exited with code 0 (0x0).

  • I did this: #include <stdio. h> main() { char user[10]; printf("Enter user name: "); scanf("%s", &user); }

  • and shows this: 'Aula1.exe': Loaded’D: Users Sara Documents Visual Studio 2010 Projects Aula1 Debug Aula1.exe', Symbols Loaded. 'Aula1.exe': Loaded 'C: Windows System32 ntdll.dll', Cannot find or open the PDB file 'Aula1.exe': Loaded 'C: Windows System32 kernel32.dll', Cannot find or open the PDB file 'Aula1.exe': Loaded 'C: Windows System32 Kernelbase.dll', Cannot find or open the PDB file 'Aula1.exe': Loaded 'C: Windows System32 msvcr100d.dll', Symbols Loaded. The program '[1548] Aula1.exe: Native' has exited with code 0 (0x0).

  • You can add a breakpoint before Return 0... when starting debug it should stop there...

Show 5 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.