Set up codeblocks compiler2/17/2023 ![]() ![]() Note: It is permissible to install later versions of gcc and g++ from the default Ubuntu repositories alongside gcc and g++ and select them instead of gcc and g++ in the Code::Blocks compiler settings. ![]() Click the OK button to close the Compiler settings window.The C compiler should be gcc, the C++ compiler should be g++ and the Linker for dynamic libs should be g++. 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.Optionally install gcc too if it is not already installed. Install the g++ compiler for C++ sudo apt install g++ xterm The C++ compiler is not configured for any version of g++ 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 |