User forums > Help
CodeBlocks not building
sodev:
The executable name of Digital Mars Compiler is dmc.exe and not mingw32-g++.exe so something is wrong!
So either your compiler is wrong configured or your project is wrong configured and uses another compiler, sadly your build log is stripped and doesn't contain the interesting line that says which compiler is selected.
So you should make sure that a) the Digital Mars Compiler is correctly configured, b) you use a project and c) the target of your project actually uses the Digital Mars Compiler and not something else.
pradnya:
I have a query
pradnya:
#include <iostream>
using namespace std;
int main()
{
int tuna = 10, x = 8;
x = x + tuna;
cout << "value of x = " ; cout << x ;
return 0;
}
Debugger
Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
Debug
ERROR: You need to specify a debugger program in the debuggers's settings.
(For MinGW compilers, it's 'gdb.exe' (without the quotes))
(For MSVC compilers, it's 'cdb.exe' (without the quotes))
build log
Nothing to be done (all items are up-to-date).
-------------- Run: Debug in Text (compiler: GNU GCC Compiler)---------------
Checking for existence: C:\Users\Pradnya\Desktop\Text\bin\Debug\Text.exe
Executing: "C:\Program Files (x86)\CodeBlocks1/cb_console_runner.exe" "C:\Users\Pradnya\Desktop\Text\bin\Debug\Text.exe" (in C:\Users\Pradnya\Desktop\Text\.)
Terminal output
value of x = 18
Process returned 0 (0x0) execution time : 0.049 s
Press any key to continue.
old program run output
I am on windows 10
Andreu83:
I remember. It happened when I clicked "create new project" and instead of "console application" I clicked "C::B plugin", I chose there I don't remember that and everything broke. Also, if I build my project on other computer, then I copy it to my computer and just run it, then everything works until I click build.
BlueHazzard:
--- Quote ---I remember. It happened when I clicked "create new project" and instead of "console application" I clicked "C::B plugin",
--- End quote ---
Unlikely....
So you want to compile with Digital Mars?
What is in your Settings->Compiler->Select "Digital Mars" from the dropdown->executables ?
Is this set to the right compiler? If not point the executable to the right place..
Is your porject set to the right compiler?
Project->Build settings->Select your project on the left->Drop down on the top: is it set to digital mats?
--- Quote --- Also, if I build my project on other computer, then I copy it to my computer and just run it, then everything works until I click build.
--- End quote ---
This is because you copy the whole project folder with the build executable. As soon as you build it you delete the executable and because you have the wrong compiler settings somewhere it wont make e new executable...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version