User forums > Help
Code::Blocks C compiler not working
kristiqn1104:
Hello,
I am using Code::Blocks since september without any problems until several days ago. When I try to compile a simple C code I am facing a very annoying problem. The execution screen is blank , empty no any output , yes I checked my code and it's 100% correct.
I am new to C programming, computer languages , compilers and I don't know how to proceed. At university I work on Unix(university's pc) and at home I am using Windows 10 64 laptop . I installed the binary release of Code::Blocks which includes the GCC compiler, toolchain executables are auto-detected ( correctly ) .I did a reset of the compiler to default , I reinstalled Code::Blocks several times, changed the directory to another hard drive, I deleted all files of Code::Blocks including those in hidden AppData folder, but nothing worked.
I really like Code::Blocks and I want to continue study C language on it , I have so many projects to do for december but I've stucked.
Any suggections? :o
I am getting the following message in C::B Build log:
mingw32-gcc.exe -c E:\INF111\maison\Cprogramming\Enclasse.c -o E:\INF111\maison\Cprogramming\Enclasse.o
mingw32-g++.exe -o E:\INF111\maison\Cprogramming\Enclasse.exe E:\INF111\maison\Cprogramming\Enclasse.o
Process terminated with status 0 (0 minute(s), 1 second(s))
0 error(s), 0 warning(s) (0 minute(s), 1 second(s))
Checking for existence: E:\INF111\maison\Cprogramming\Enclasse.exe
Executing: E:\CodeBlocks/cb_console_runner.exe "E:\INF111\maison\Cprogramming\Enclasse.exe" (in E:\INF111\maison\Cprogramming)
In my opinion there is nothing with the code , everything looks fine but for some reason the GCC compiler is not working properly. I don't understand how problems like this could occur when all the settings and options are set to default when I install C::B. I never changed anything in the options that I don't understand because I know I can mess something up. It's strange that after so many compiled C codes succesfully , the compiler got broken by itself.
Thank You in advance!
scarphin:
Did you try to run Enclasse.exe in command window (cmd.exe)? If yes, does it behave correctly?
Manolo:
Please, it's good to know which version of C:B you are using.
In Project->Properties->Build targets what 'Type' do you have, GUI aplication? Console aplication?
Can you run your app with the debugger, step by step, so you can tell where your app 'fails'?
kristiqn1104:
My Code::Blocks version is 13.12. It is console application. After I ran it with the debugger I got this error :
-------------- Build: Debug in INF111 (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -o bin\Debug\INF111.exe obj\Debug\main.o
e:/codeblocks/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot open output file bin\Debug\INF111.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Code::Blocks has full permissions, why is that?
oBFusCATed:
Two possible causes:
1. the exe is still running
2. there is an anti virus software that causes this.
Navigation
[0] Message Index
[#] Next page
Go to full version