-1

So I'm just starting out with Visual Studio 2010, which is what they gave us at the university for our lessons in C language.

I wrote the simplest thing I could think of, just to test it out. It's a single printf command, naturally with the appropriate library included and a "main" function.

#include <stdio.h>
void main() 
{
    printf("Hello world");
}

Compilation goes through just fine, but when I start the program without debugging it just shows me an empty screen. Debugging the program freezes VS altogether.

Asked my teacher and professor, asked my student peers, asked Google, and no proper answer so far. I've tried reinstalling Visual Studio twice.

Does anyone have a clue as to what's going on?

Jeff B
  • 8,572
  • 17
  • 61
  • 140
Tom Lyden
  • 1
  • 1
  • 1
    It might be a simple application - but please share with us your code - even if it is just a "Hello World" example you are attempting to run – Jonnus Nov 19 '15 at 17:49
  • 1
    VS doesn't usually "freeze" debugging "Hello, World!" type of application. May be your installation is corrupted? Also, why would anyone use VS2010 when the superior version of VS2013 (and VS2015) Community Edition is free? – Vlad Feinstein Nov 19 '15 at 18:18
  • It is a "Hello World", and the installation is fine. I even reinstalled twice to make sure. Here's my code: `#include void main() { printf("Hello world"); }` – Tom Lyden Nov 19 '15 at 20:32

1 Answers1

0

If may be attempting to download public symbol files. Take a look at this answer to see how to disable this.

Community
  • 1
  • 1
Sean
  • 60,939
  • 11
  • 97
  • 136