Code::Blocks Forums

User forums => Help => Topic started by: anton on May 14, 2021, 04:51:17 am

Title: Process terminated with status -1073741511 (0 minute(s), 10 second(s))
Post by: anton on May 14, 2021, 04:51:17 am
i had installed Codeblocks 17.12 and has this message after i had run my program. Even when i had used hello world program. after debug running it has output message
 ---------------------------------------------------------------
Run: Debug in word_out (compiler: GNU GCC Compiler)---------------

Checking for existence: D:\codeblks-wrkspce\word_out\bin\Debug\word_out.exe
Executing: "C:\Program Files (x86)\CodeBlocks/cb_console_runner.exe" "D:\codeblks-wrkspce\word_out\bin\Debug\word_out.exe"  (in D:\codeblks-wrkspce\word_out\.)
Process terminated with status -1073741511 (0 minute(s), 10 second(s))

----------------------------------------------------------------

and i had such message

Title: Re: Process terminated with status -1073741511 (0 minute(s), 10 second(s))
Post by: anton on May 14, 2021, 07:47:26 am
after i had removed the 17.03 version and had installed the 20.03 version,
the run of my program was ended with such a message, and of course, my program didn't executed at all.   

I had few times reinstalled CodeBloks and with the same result.
Title: Re: Process terminated with status -1073741511 (0 minute(s), 10 second(s))
Post by: Miguel Gimenez on May 14, 2021, 08:14:18 am
You must copy that DLL (it should be in the MinGW folder) to the folder where the executable is.

You can avoid that linking statically with the library, but for a Hello World program just left it as is.
Title: Re: Process terminated with status -1073741511 (0 minute(s), 10 second(s))
Post by: anton on May 14, 2021, 10:32:16 pm
thanx, but i didn't find the dll u mentioned above. at the folder mingw/bin there are file
Code
libgcc_s_seh-1.dll
only

and i didn't understand - if i just had installed the code blokcs program, need i make some tuning after install for running and debugging or not? i just find not the special requirements for the installation,may be somebody can point to the manual, where it described? will be very appreciated.
Title: Re: Process terminated with status -1073741511 (0 minute(s), 10 second(s))
Post by: stahta01 on May 14, 2021, 11:23:59 pm
Then you likely are not using the compiler whose folder you looked at.

1. Decide which mingw GCC compiler toolchain you wish to use.
2. Confirm the CB settings is set to that compiler
3. Remove all other mingw GCC compilers from the windows system path.

Step 2 directions
settings -> compiler
SELECT the correct compiler and make it the default compiler
TAB: Toolchain executables
VERIFY the compiler installation folder is correct
CHECK that the sub-tab: Additional paths is empty or has paths for the same compiler

Tim S.
Title: Re: Process terminated with status -1073741511 (0 minute(s), 10 second(s))
Post by: anton on May 15, 2021, 01:05:26 am
thanx. i had one compiler only in my CB as in screen shot, after CB installation. does it properly or just i had downloaded not full copy of installation file?
and there no other mingw copmpilers in windows path as screen shots show.

step2  -i had checked the tabs u had pointed, and it seems 2 me, that they are following your directions.
But the debug and run still not works on my system.
Title: Re: Process terminated with status -1073741511 (0 minute(s), 10 second(s))
Post by: stahta01 on May 15, 2021, 01:09:27 am
The Windows system PATH is in Windows; it is *not* inside Code::Blocks!

Tim S.
Title: Re: Process terminated with status -1073741511 (0 minute(s), 10 second(s))
Post by: stahta01 on May 15, 2021, 01:11:51 am
Please post a new "Build Log" After you rebuild the program!

Edit: Add link https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)

Tim S.
Title: Re: Process terminated with status -1073741511 (0 minute(s), 10 second(s))
Post by: anton on May 15, 2021, 01:14:09 am
and compiler setings is as screenshot and they are by default, i didn't know, which i need to check, because just start 2 study/ i had checked that no variables point 2 mingv other than in CODEBLOKS\mingv folder. (they are was presented, but I had removed it (mingv was in root directory, and i had removed it too))
but the problem is still persist
Title: Re: Process terminated with status -1073741511 (0 minute(s), 10 second(s))
Post by: stahta01 on May 15, 2021, 01:15:48 am
Please post a new "Build Log" After you rebuild the program!

Edit: Add link https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)

Tim S.

Edit: Add command to rebuild.

Build -> Rebuild
Title: Re: Process terminated with status -1073741511 (0 minute(s), 10 second(s))
Post by: anton on May 15, 2021, 01:42:41 am
thanx. after rebuild all start works,
Code
-------------- Clean: Debug in word_out (compiler: GNU GCC Compiler)---------------

Cleaned "word_out - Debug"

-------------- Build: Debug in word_out (compiler: GNU GCC Compiler)---------------

g++.exe -Wall -fexceptions -g  -c D:\codeblks-wrkspce\word_out\main.cpp -o obj\Debug\main.o
g++.exe  -o bin\Debug\word_out.exe obj\Debug\main.o   
D:\codeblks-wrkspce\word_out\main.cpp: In function 'int main()':
D:\codeblks-wrkspce\word_out\main.cpp:59:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long long unsigned int'} [-Wsign-compare]
     for(int i=0;i<query.size();i++)
                 ~^~~~~~~~~~~~~
Output file is bin\Debug\word_out.exe with size 113.90 KB
Process terminated with status 0 (0 minute(s), 1 second(s))
0 error(s), 1 warning(s) (0 minute(s), 1 second(s))
 
i guess that the solution was by your direction to remove the path to mingw from environment variables. this is only change in my system i made. thanx so much, i had trying to start debugging more than one weeks! and now it has stepped by the lines and  in watches variables are changed!
Title: Re: Process terminated with status -1073741511 (0 minute(s), 10 second(s))
Post by: stahta01 on May 15, 2021, 04:14:28 am
When something does not work in CB the first thing I try is doing a full rebuild.

This sometimes fixes problem like yours if the problem is not caused by conflicting or multiple mingw GCC installed.

There is a 4 step I left out that if your problem had not been fixed; and that is to delete all the mingw GCC installations except for the one you are trying to use.

Tim S.