News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Unable to bulid/run

Started by Afranius, October 19, 2012, 03:11:05 PM

Previous topic - Next topic

Afranius

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.

cbuser2

Try copying the code into a new project, then build the project. Does it work?

Afranius

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?

cbuser2

Search the forums, or google. I think this question may have been asked many times already. :)

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Afranius

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