codeblocks

Can't run c/c++ codes in code::blocks 13.12 on linuxmint 17: Status 255

我们两清 提交于 2019-12-22 05:22:06
问题 I am not able to run any C/C++ programs in code::blocks. Could anyone please suggest why this is happening? Currently I have the gnu c and g++ compilers installed on the system. The error message on building and running this simple c code: #include<stdio.h> int main(){ printf("55"); return 0; } is: Checking for existence: /home/user1/Desktop/progs/a Executing: xterm -T '/home/user1/Desktop/progs/a' -e /usr/bin/cb_console_runner "/home/user1/Desktop/progs/a" (in /home/user1/Desktop/progs)

How do I successfully use VIM as an external editor for Code::Blocks?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-22 04:40:52
问题 I really like Code::Blocks for its build system and step through debugging abilities - ie I really enjoy using wrappers to gcc/gdb more than using them from Makefiles or the command line. The problem is, I'm so brain damaged (or spoilt, some might say) by years of VIM use that I cannot edit in a standard Windows text editor. So, I setup Code::Blocks to use VIM as the file handler for .cpp/ .c/*.h and along with VIM's --server-name and --remote-tab options can right-click files in my C::B

Invalid toolchain error with Code::Blocks

…衆ロ難τιáo~ 提交于 2019-12-21 21:40:11
问题 "Hello - Debug" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping... I get the above message when I try to run a simple HelloWorld program as below. #include <iostream> using namespace std; int main() { cout << "Hello world!" << endl; return 0; } Any idea as to why this is happening and how I could solve it would be useful FYI : Im using the GNU GCC compiler at the moment, I tried changing this too but there was no use. 回答1:

SDL Console output works when debuging, but not when run with the exe

∥☆過路亽.° 提交于 2019-12-21 20:54:39
问题 I am writing an experimental networking program, basically a test program for learning networking. I am using SDL and SDL_net in Code::Blocks with mingw, so the console output was being directed to stdout.txt. I searched around and found that you can fix this by including after SDL_Init(): freopen("CON", "w", stdout); //stops redirect of output freopen("CON", "w", stderr); //and errors... This worked perfectly, but only when building and running the program in the IDE: when run outside of the

CMAKE libintl-8.dll is missing from your computer

半世苍凉 提交于 2019-12-21 20:22:03
问题 I've been looking for solutions, and honestly I'm stuck. I'm trying to install Box2D, as you can see by the file paths. Anyway, this prompt appears several times before the following: The CXX compiler identification is unknown Check for working CXX compiler: C:/MinGW/bin/g++.exe Check for working CXX compiler: C:/MinGW/bin/g++.exe -- broken CMake Error at C:/Program Files/CMake/share/cmake-3.6/Modules/CMakeTestCXXCompiler.cmake:54 (message): The C++ compiler "C:/MinGW/bin/g++.exe" is not able

CodeBlocks, GCC: change project language c and c++?

两盒软妹~` 提交于 2019-12-21 12:18:49
问题 When I select console project to start with, it lets you to select C or C++. But once its created, I can't figure out how to change it. Plus, when you create a Win32 GUI application, it doesn't give you the option at all and its default is C++. Where can I change to C? I have been looking in all the project settings for ages. Renaming my file from .cpp to .c doesn't seem to do anything, it compiles the file as C++. I know that without the IDE, you just change your executable from g++ to gcc ,

The procedure entry point _gxx_personality_v0 could not be located in the dynamic link library libstdc++-6.dll Error

本小妞迷上赌 提交于 2019-12-21 04:54:29
问题 Yesterday I decided to download, install, and attempt to use Allegro 5. I also downloaded Code::Blocks 12.11 w/ the MinGW compiler. I set up everything and installed everything correctly (or so I thought) and tried to run a sample code to see if it would work: #include <stdio.h> #include <allegro5/allegro.h> int main(int argc, char **argv){ ALLEGRO_DISPLAY *display = NULL; if(!al_init()) { fprintf(stderr, "failed to initialize allegro!\n"); return -1; } display = al_create_display(640, 480);

How to view the disassembly in Code::Blocks?

二次信任 提交于 2019-12-21 04:35:27
问题 I read this article about some low level underpinnings of C/C++, and the author is basically showing us through the assembly code generated by the compiler, line by line. He is using VS 2010, but I don't, I use Code::Blocks. How do I view the disassembly there? When I go to debugger, and click disassembly, it shows me a blank window... This is the C++ (.cpp) code (the whole code) I compiled: int main() { int x = 1; int y = 2; int z = 0; z = x + y; return 0; } 回答1: The kind of disassembly that

Java vs C (Run time) EDIT: Added Code [closed]

时光总嘲笑我的痴心妄想 提交于 2019-12-20 07:56:15
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I just wrote a program that finds all the prime numbers with an upper bound. The algorithm: Sieve of Eratosthenes. Wrote it both in C and Java. The upper bound is 666014. For some reason C gives the result in more than 2.5 seconds, while Java does it in like half a second. Details: The array in C

Code::Blocks: CMake generated Makefile says “Nothing to be done.”

て烟熏妆下的殇ゞ 提交于 2019-12-20 06:29:46
问题 I just installed Code::Blocks with MinGW on my Win7 64 Box and tried to compile a CMake generated project (namely openclonk). -------------- Clean: all in clonk --------------- Cleaned "clonk - all" -------------- Build: all in clonk --------------- Using makefile: Makefile Execution of 'make.exe -s -f Makefile all' in 'C:\Users\Julius\Documents\Visual Studio 2010\Projects\OpenClonk' failed. Nothing to be done. If I run C:/PROGRA~2/CODEBL~1/MinGW/bin/mingw32-make.exe -f "C:/Users/Julius