Click the OK button to close the Compiler settings window.The C compiler should be either gcc or optionally gcc-8, the C++ compiler should be g++-8 and the Linker for dynamic libs should be g++-8. button(s) which are marked by the mouse cursor in the below screenshot. It has already been selected in the below screenshot. Select Settings -> Compiler -> Global compiler settings (large blue gear icon in the left pane) -> Toolchain executables tab. If you want to see the expanded source code, without compiling and running it, just type C-c C-v v.If youve never actually installed a compiler, its pretty definite that you dont have one - Windows certainly doesnt come with a compiler built-in, and neither do most Linux distributions. It clearly sounds like you dont have one installed. I added the graphics.h and winbgim header filer in include folder. But i am getting warning: Deprecated conversion from string constant to char. sudo apt install gcc-8-base # recommended version recive message:compilation error.I use CODEBLOCKS 13.12 and on my computer the problems run very well.Which compile I must use and I ust modify settings. I checked - the Code::Blocks distro definitely doesnt include a compiler. Since graphics.h is not included in codeblocks i made the required changes and made the below program. Optionally install the latest version of gcc too (recommended). Install the latest version of the g++ compiler for C++. The C++ compiler is not configured for any version of g++ in Ubuntu 18.04 by default, so it has to be configured in the Code::Blocks compiler settings. Your C++ program is not running in Code::Blocks because you do not have a C++ compiler (a version of G++) installed, or if it is installed you have not configured the C++ compiler in the Code::Blocks compiler settings.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |