Author Topic: Unable to bulid/run  (Read 5790 times)

Offline Afranius

  • Single posting newcomer
  • *
  • Posts: 3
Unable to bulid/run
« 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.

Offline cbuser2

  • Multiple posting newcomer
  • *
  • Posts: 33
Re: Unable to bulid/run
« Reply #1 on: October 21, 2012, 09:09:02 am »
Try copying the code into a new project, then build the project. Does it work?

Offline Afranius

  • Single posting newcomer
  • *
  • Posts: 3
Re: Unable to bulid/run
« Reply #2 on: October 21, 2012, 11:31:54 pm »
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?

Offline cbuser2

  • Multiple posting newcomer
  • *
  • Posts: 33
Re: Unable to bulid/run
« Reply #3 on: October 22, 2012, 12:52:29 am »
Search the forums, or google. I think this question may have been asked many times already. :)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Unable to bulid/run
« Reply #4 on: October 22, 2012, 01:06:15 am »
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


Related thread http://forums.codeblocks.org/index.php/topic,16987.0.html

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Afranius

  • Single posting newcomer
  • *
  • Posts: 3
Re: Unable to bulid/run
« Reply #5 on: October 23, 2012, 11:55:19 pm »
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