User forums > Help

Build and run doesnt work and colours dont appear

<< < (2/3) > >>

Jenna:
On windows, you might need to scroll the BUild log, to see the output.
Their seem to be sometimes refreshing issues with wxWidgets on windows.

Just_A_Guy:

--- Quote from: jens on September 05, 2011, 07:35:21 pm ---On windows, you might need to scroll the BUild log, to see the output.
Their seem to be sometimes refreshing issues with wxWidgets on windows.

--- End quote ---
I dont get it? You mean i need to select the output that works on windows 7?

--- Quote ---When you say that it does not work, do you mean that the button is grayed out, and you cannot click it, or that when you press it nothing happens (check the build log at the bottom of the screen in Code::Blocks)?
 * If it is grayed out, it is because the file you are working with does not have the correct file extension - .cpp - as jens already mentioned.
--- End quote ---
No its not grayed out, i can click on the option but it doesnt pop up something. So i click on Build and Run, but nothing happens.
And yes i have made a project and saved the file on my desktop (it's a C++ source file (.cpp) )
But i will check that page again.
(Sorry guys, im not pro at English).

Jenna:

--- Quote from: Just_A_Guy on September 05, 2011, 08:27:26 pm ---
--- Quote from: jens on September 05, 2011, 07:35:21 pm ---On windows, you might need to scroll the BUild log, to see the output.
Their seem to be sometimes refreshing issues with wxWidgets on windows.

--- End quote ---
I dont get it? You mean i need to select the output that works on windows 7?

--- End quote ---

If you don't see any output in the "Build log", you might need to click into it and scroll it with the mousewheel, or scroll it with the scrollbar to make the content visible.
I only saw this on windows (xp and win7), not on any of the linuxes I tested.
Not sure if this also happens for the "Build messages" (and other listlogs), or only for textlogs like the "Build log".

Alpha:

--- Quote from: Just_A_Guy on September 05, 2011, 08:27:26 pm ---No its not grayed out, i can click on the option but it doesnt pop up something. So i click on Build and Run, but nothing happens.

--- End quote ---
Are any messages displayed in the build log?
Did you check your hard-drive to see if the executable was created at all?

Edit:
If your build log looks something like this,

--- Code: ---"ProjectName - TargetName": The compiler's setup is invalid so Code::Blocks cannot find/run the compiler. Probably the
toolchain path within the compiler options is not setup correctly?! Skipping...
Nothing to be done (all items are up-to-date).

--- End code ---
it means Code::Blocks cannot find your compiler (as it says).  If this is the case, first find the location of the compiler (I am assuming mingw based on the package you said you installed) on your hard-drive (because you installed the bundled version, it should be located in C:\Program Files\CodeBlocks\MinGW).  Copy the location.  Back inside Code::Blocks, open Settings->Compiler and debugger...->Toolchain executables (tab) and paste the path of your compiler into the Compiler's installation directory box.

Just_A_Guy:

--- Quote from: Alpha on September 05, 2011, 08:41:29 pm ---
--- Quote from: Just_A_Guy on September 05, 2011, 08:27:26 pm ---No its not grayed out, i can click on the option but it doesnt pop up something. So i click on Build and Run, but nothing happens.

--- End quote ---
Are any messages displayed in the build log?
Did you check your hard-drive to see if the executable was created at all?

Edit:
If your build log looks something like this,

--- Code: ---"ProjectName - TargetName": The compiler's setup is invalid so Code::Blocks cannot find/run the compiler. Probably the
toolchain path within the compiler options is not setup correctly?! Skipping...
Nothing to be done (all items are up-to-date).

--- End code ---
it means Code::Blocks cannot find your compiler (as it says).  If this is the case, first find the location of the compiler (I am assuming mingw based on the package you said you installed) on your hard-drive (because you installed the bundled version, it should be located in C:\Program Files\CodeBlocks\MinGW).  Copy the location.  Back inside Code::Blocks, open Settings->Compiler and debugger...->Toolchain executables (tab) and paste the path of your compiler into the Compiler's installation directory box.

--- End quote ---
The Build Log is blanc, even if i type something.
Everything works except the build and run option.
Ok to get it clear:
I downloaded the new version of Code::blocks (10.05) - codeblocks-10.05mingw-setup.exe (binary release).
I installed all plugins.
The option Build and Run is NOT grayed out.
My default compiler is GNU GCC Compiler (C:\MinGW)
The project that i saved is a cpp. file.
The Build log is blanc, even when i type something like this and click on the run and build option:
 #include <iostream>
using namespace std;

int main () {
    cout << 'Hello everyone' ;
}
It does do nothing.
And if i change the compiler to something like this:
Intel C/C++ Compiler (C:\Program Files (x86)\Intel\Compiler\C++\9.0) it also does nothing.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version