Code::Blocks Forums
User forums => Help => Topic started by: Afranius on October 19, 2012, 03:11:05 pm
-
Greetings,
I am a new user to Code::Blocks and I have encountered a problem which I am unable to solve and I found no useful advice on this problem in the FAQ or other topics either.
I have made a simple program in C, but when I click on Bulid or Run and build, it does absolutely nothing. When clicking on Run a window pops up, stating that "It seems the file has not been built yet. Do you want to build it now?" if I hit yes, nothing happens, just as if I would click Build or Build and Run.
The Build log is empty, it is only searching for the existence of the file, when I click on Run.
I have also noticed that I have no object file for this source file, but I don't know why.
Can you please give me any advice?
Thank you.
-
Try copying the code into a new project, then build the project. Does it work?
-
It does nothing and in the log it says this:
"hghkj - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
Nothing to be done.
Especially the "Nothing to be done" line is strange because the code I have written is 100% correct (it was put there from a working program), but I suppose it will be because of the invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!] it mentioned.
However, I still have no clue about what the problem is and how to solve it.
What is awful, because on Wednesday I will be writing a test from programming in school and thus I can't prepare for it correctly when my Code::Blocks cannot run my programs.
Any advice?
-
Search the forums, or google. I think this question may have been asked many times already. :)
-
Try installing a Compiler!
If Compiler already installed then configure the tool-chain.
http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler#Compiler-neutral_setup_steps (http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler#Compiler-neutral_setup_steps)
Related thread http://forums.codeblocks.org/index.php/topic,16987.0.html (http://forums.codeblocks.org/index.php/topic,16987.0.html)
Tim S.
-
Configurating that tool-chain worked, thank you both for the help, guys :)
Now the only thing I need to do is to learn how to program in C in 18 hours to successfully take my exam :D