User forums > Help

CodeBlocks wont compile

(1/3) > >>

MoonlitKnight:
Hi, I'm new to codeblocks but not to C. When trying to compile a program I get the following message in the build log:

Compiling: getrow.c
Execution of 'gcc.exe -Wall  -O2     -c "C:/Users/Utente/Documents/Nots and Crosses/getrow.c" -o obj/Release/getrow.o' in 'C:\Users\Utente\Documents\Nots and Crosses' failed.
Nothing to be done.

I think this has something to do with the compiler?

HELP!

Cheers

Jenna:
Whid do you think executing the compiler has nothing to do with the compiler ?

Your post lacks some information:
OS (it's windows I see, but which) ?
Which compiler is installed (version) ?

Are you able to compile from commandline ?
Does it happen always if you try to compile (did you try a simple hello-world-project created by the wizard) ?
Dou you have multiple instances of MinGW installed ?

MoonlitKnight:

--- Quote from: jens on October 29, 2010, 07:54:21 pm ---Whid do you think executing the compiler has nothing to do with the compiler ?

Your post lacks some information:
OS (it's windows I see, but which) ?
Which compiler is installed (version) ?

Are you able to compile from commandline ?
Does it happen always if you try to compile (did you try a simple hello-world-project created by the wizard) ?
Dou you have multiple instances of MinGW installed ?

--- End quote ---

OS is windows vista. Compiler is Cygwin GCC. Im not sure what version but it came from the codeblocks website included with codeblocks. The version i downloaded is codeblocks-10.05-setup.exe. I dont know how to compile from commandline (bit of a noob).
Simple hello world programs dont compile either, they give the same message.

stahta01:

--- Quote ---Cygwin GCC
--- End quote ---

NOTE: Code::Blocks, for windows, is sometimes packaged with the MinGW GCC NEVER with Cygwin GCC.

Did you install the Cygwin GCC C/C++ Compiler?
If not, why do you think it is installed?
If yes, which version of Cygwin GCC C/C++ compiler was installed?

Please turn on Full Compiler Logging
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Please find out which compiler you are using for your project.

Tim S.

MoonlitKnight:
Sorry for being a bit hopeless. I installed no compliler. The site said it would be ready to go after installation. I assumed i was using Cygwin GCC because that was set under build options the first time i checked. Maybe i could download and install a compiler and that would fix it?

Navigation

[0] Message Index

[#] Next page

Go to full version