Author Topic: Cannot run program  (Read 3653 times)

Offline activee

  • Single posting newcomer
  • *
  • Posts: 2
Cannot run program
« on: June 24, 2014, 06:41:26 pm »
hey I just installed code block and when I "build & run" it seems like my program window disappear and I'm left with the debug window open.
After that only abort works in order to close it. My program seems to keep running in the background and I can't even stop it with task manager.
It's a simple hello word program with a scanf() at the end.
I need help.

-------------- Build: Debug in g (compiler: GNU GCC Compiler)---------------

mingw32-gcc.exe -Wall -g  -c C:\Users\Ced\Documents\g\main.c -o obj\Debug\main.o
C:\Users\Ced\Documents\g\main.c: In function 'main':
C:\Users\Ced\Documents\g\main.c:9:5: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat]
mingw32-g++.exe  -o bin\Debug\g.exe obj\Debug\main.o   
Output file is bin\Debug\g.exe with size 28.36 KB
Process terminated with status 0 (0 minute(s), 1 second(s))
0 error(s), 1 warning(s) (0 minute(s), 1 second(s))
 

-------------- Run: Debug in g (compiler: GNU GCC Compiler)---------------

Checking for existence: C:\Users\Ced\Documents\g\bin\Debug\g.exe
Executing: "C:\Program Files (x86)\CodeBlocks/cb_console_runner.exe" "C:\Users\Ced\Documents\g\bin\Debug\g.exe"  (in C:\Users\Ced\Documents\g\.)

Offline activee

  • Single posting newcomer
  • *
  • Posts: 2
Re: Cannot run program
« Reply #1 on: June 24, 2014, 06:45:30 pm »
It seems like my antivirus was causing the problem.

Offline harrykar

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: Cannot run program
« Reply #2 on: July 01, 2014, 06:40:04 pm »
It seems like my antivirus was causing the problem.

You got it  ;) same thing here ; I strongly recommend you to take down antivirus stuff when you use development tools (included CVS's http://en.wikipedia.org/wiki/Revision_control too)
--"Arguing with an engineer is like wrestling with a pig in the mud; after a while you  realize you are muddy and the pig is enjoying it." <br />-- Don't Learn to HACK - Hack to LEARN <br />-- cyberwarfare is now an active part of information warfare