Hello,
I am a user of Code::Blocks v 10.05 and I was wondering if there was a way to turn off the "process returned..." thing at the closing of a program.
i.e. I write my "Helo World!" program, and the process returns 0. at the end of my program, I see this line:
Process returned 0 (0x0) execution time : 2.421 x
Press any key to continue.
I would like to know if there is any way to turn this feature off... and if not, then is there a way to implement it into a future upgrade?
Larek
Here is a patch :D
--- main.cpp 2010-11-15 20:24:06.911264000 +0100
+++ main.cpp.new 2010-11-15 20:24:25.521264000 +0100
@@ -131,17 +131,17 @@
gettimeofday(&tv, NULL);
cl = (tv.tv_sec + (double)tv.tv_usec / 1000000) - cl;
- printf("\nProcess returned %d (0x%X) execution time : %0.3f s", ret, ret, cl);
- printf
- (
- "\nPress "
-#ifdef __WXMSW__
- "any key"
-#else
- "ENTER"
-#endif
- " to continue.\n"
- );
+// printf("\nProcess returned %d (0x%X) execution time : %0.3f s", ret, ret, cl);
+// printf
+// (
+// "\nPress "
+//#ifdef __WXMSW__
+// "any key"
+//#else
+// "ENTER"
+//#endif
+// " to continue.\n"
+// );
wait_key();
Apply it to src/tools/ConsoleRunner/main.cpp and recompile ^^
Well good news and bad news.
Good:I can now build a project.
Bad : every time it builds, I get this error:
ld.exe||cannot find -lbgi|
||=== Build finished: 1 errors, 0 warnings ===|
It does this for every project.... how would one fix this problem?
>.>
((off topic: I feel like such an idiot for asking some questions that are probably easily answered, so please don't give me crap about this, nobody has yet, but I've tried elswhere, and had noting but crap thrown in my face...))