User forums > Help

Code::Blocks C compiler not working

<< < (2/3) > >>

kristiqn1104:
I checked in processes , the file is closed. The shields of my antivirus software are disabled.

BlueHazzard:

--- Quote from: kristiqn1104 on November 15, 2015, 11:47:08 am ---I checked in processes , the file is closed. The shields of my antivirus software are disabled.

--- End quote ---
have you tried to run it in the cmd?

If you don't know how:
#1
1) Go to your output folder
2) Press and hold shift an right klick -> Open command prompt window here
3) Type the name of your exe and hit enter
Does it work?

if step 2) in #1 does not work:
1) click "start", type in the search bar "cmd.exe" and hit enter
2) enter "cd .." and hit enter. repeat this step until there is only written "C:\>"
3) Now change partition with: type "E:" and hit enter
4) now go with "cd" (=change directory) to your folder. In your example: "cd INF111\maison\Cprogramming\" (Note you can hit the TAB key for completion of folder names)
5) Type the name of your exe and hit enter
Does it work?

PS. i have written this noobie explanation, because i plan to link my future descriptions of this steps to this post.

BlueHazzard:

--- Quote from: kristiqn1104 on November 15, 2015, 11:47:08 am ---The shields of my antivirus software are disabled.

--- End quote ---

What av are you using?

kristiqn1104:
None of #1 and #2  worked. When I run the exe  in the cmd it still give no any  output. I have Avast installed on my pc.

BlueHazzard:
avast started lately to block executables generated by gcc, so probably avast has blocked the creation and execution of your file.
So i would try to:
1) deactivate avast
2) Open codeblocks and rebuild the project
3) try to run it

If this does not work:
1) add your project directory, the codeblocks directory and the mingw directory to the exception of avast
2) rebuild your project

If all this does not work:
post a rebuild log here in the forum and post some code...

greetings

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version