User forums > Help
Compiles fine but always encounters problem when running the .exe
lifeisgood:
Hi, I downloaded and installed codeblocks-16.01mingw-setup.exe for my Windows 10 computer. When I compiled the code it was fine but when I tried to run it there was always a problem with alloc_traits.h. When someone else used the g++ or the cl.exe compilers from the command line they got output with no problem. Does anyone know what the issue is here, please?
stahta01:
My best guess on the little information you posted is that you made a programming mistake.
Please read and follow the rules http://forums.codeblocks.org/index.php/topic,9996.0.html
Please report problems with the information need to have a chance on helping you.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
Edit: Added third link that might be the issue: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_I_get_a_blank_.28black.29_terminal_window_on_windows
Tim S.
lifeisgood:
Hi Tim, My friend and I checked over and over to make sure that the program had no problem and it ran fine on his computer...
--- Quote from: stahta01 on March 27, 2017, 07:32:54 pm ---My best guess on the little information you posted is that you made a programming mistake.
Please read and follow the rules http://forums.codeblocks.org/index.php/topic,9996.0.html
Please report problems with the information need to have a chance on helping you.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
Edit: Added third link that might be the issue: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_I_get_a_blank_.28black.29_terminal_window_on_windows
Tim S.
--- End quote ---
stahta01:
--- Quote from: lifeisgood on March 27, 2017, 07:39:44 pm ---Hi Tim, My friend and I checked over and over to make sure that the program had no problem and it ran fine on his computer...
--- Quote from: stahta01 on March 27, 2017, 07:32:54 pm ---My best guess on the little information you posted is that you made a programming mistake.
Please read and follow the rules http://forums.codeblocks.org/index.php/topic,9996.0.html
Please report problems with the information need to have a chance on helping you.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
Edit: Added third link that might be the issue: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_I_get_a_blank_.28black.29_terminal_window_on_windows
Tim S.
--- End quote ---
--- End quote ---
So there is no problem; so, we all can ignore your request for help.
Edit: This is the only logical conclusion since you refuse to provide any real info needed to help you.
Tim S.
lifeisgood:
All I was trying to say was that programming mistake might be able to rule out... This is what I got from the compiler:
--- Quote ----------------- Clean: Debug in Tauchen (compiler: GNU GCC Compiler)---------------
Cleaned "Tauchen - Debug"
-------------- Build: Debug in Tauchen (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -g -c E:\BC\Courses\Pablo_Methods\HW\HW1\Tauchen.cpp -o obj\Debug\Tauchen.o
mingw32-g++.exe -o bin\Debug\Tauchen.exe obj\Debug\Tauchen.o
Output file is bin\Debug\Tauchen.exe with size 1.08 MB
Process terminated with status 0 (0 minute(s), 4 second(s))
0 error(s), 0 warning(s) (0 minute(s), 4 second(s))
--- End quote ---
I also tried compiling it from the command line and got the following message after trying to run the .exe file. This is the exact same message I got from running the above .exe file.
--- Quote ---terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more infomration.
--- End quote ---
Navigation
[0] Message Index
[#] Next page
Go to full version