User forums > Help

CodeBlocks not building

(1/3) > >>

Andreu83:
codeblocks not building anything programm, even "hello world"
main.cpp
mingw32-g++.exe /NOLOGO obj\Debug\main.obj, bin\Debug\14.exe, ,
mingw32-g++.exe: error: unrecognized command line option '-mn'
mingw32-g++.exe: error: unrecognized command line option '-w-'
Reinstalling doesn't help.  Settings -> Compiler -> Toolchain Executables evrything good.
Please help who can, it is desirable in Russian

Miguel Gimenez:
Post a full rebuild log

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Andreu83:
I am running Code::Blocks version 17.12 on Windows 10
. The compiler I use is Digital Mars Compiler
version

When I ...
try build and run

Description of problem.
the window appears "It seems that this progect has not been build yet. Do you want to build it now?" I choose "yes" and nothing to do.

Build log:

--- Code: ---mingw32-g++.exe -mn -c -w- -Ae  -g     -oobj\Debug\main.obj main.cpp
mingw32-g++.exe /NOLOGO obj\Debug\main.obj, bin\Debug\1.exe, , 
mingw32-g++.exe: error: unrecognized command line option '-mn'
mingw32-g++.exe: error: unrecognized command line option '-w-'
Process terminated with status 1 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))

--- End code ---

Crash report:

--- Code: ---#include <iostream>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}


--- End code ---

    (Although the following is not necessary, showing that you
     have tried increases the probability of a response.)
I have already tried reinstall codeblocks, and changed settings Settings -> Compiler -> Toolchain Executables

... but none of them worked.

Miguel Gimenez:

--- Quote ---The compiler I use is Digital Mars Compiler
--- End quote ---

If you are using Digital Mars why C::B is calling Mingw? Check the Digital Mars configuration in Settings -> Compiler -> Toolchain Executables and check that your project is configured to use Digital Mars (Project -> Build options -> Selected compiler)

The crash report you attached is not a crash report but your source code. Here there is no crash, so there is nothing to attach.

Andreu83:
Digital Mars configuration in Settings -> Compiler -> Toolchain Executables, I checked and all the files exhibited what is necessary. Project -> Build options -> Selected compiler, compile is Digital Mars  After installing the program C::B I have not changed anything in the settings. She worked for a while, then she stopped.

Navigation

[0] Message Index

[#] Next page

Go to full version