I am having a strange problem with Code:Blocks. After writing C program i click on Build and run, it compiles in fraction of a second but then a new window opens and after around 12 seconds output appears on the window. It takes this much time for even basic code like
#include<stdio.h>
int main()
{
printf("HELLO");
return 0;
}
Here are snapshots of what happens. As I am not allowed to post images{new to forum} I am posting links.
When I click on build and run, this window appears in no time
Then after around 10-12 seconds, this window appears. As you can see it says that execution time took 11 seconds.
Any idea why this is happening? How to fix it? I did no tweaks to code:blocks and settings are same as they come by default.
The problem was with antivirus. Whitlisting gcc,g++ and codeblocks solved the problem.