Codeblocks C++ project won't build or runIs there a built-in c++ compiler in 12.04?Looking for IDE compiler to build and run a .c source file without creating a projectWhy am I getting compile time errors in this C++ program?Missing compiler error in QtCreator and Qt5.1.0 on Lubuntu 13.04How do I use the GTK+ development libraries in Ubuntu?How to run Code::Blocks from a USB Flash DriveWhich code::block version supports building Dynamic Link LibrariesWhy do I get “undefined reference” errors compiling a simple C++ program with gcc?How to link installed pakage with g++ / atom with gpp-compiler package?CodeBlocks debugger stopped working
Valid term from quadratic sequence?
What is a romance in Latin?
Cursor Replacement for Newbies
Should I cover my bicycle overnight while bikepacking?
I would say: "You are another teacher", but she is a woman and I am a man
Mathematica command that allows it to read my intentions
Do scales need to be in alphabetical order?
How can saying a song's name be a copyright violation?
How seriously should I take size and weight limits of hand luggage?
iPad being using in wall mount battery swollen
ssTTsSTtRrriinInnnnNNNIiinngg
Why was the shrinking from 8″ made only to 5.25″ and not smaller (4″ or less)?
What do you call someone who asks many questions?
Can the Meissner effect explain very large floating structures?
Unable to supress ligatures in headings which are set in Caps
GFCI outlets - can they be repaired? Are they really needed at the end of a circuit?
What reasons are there for a Capitalist to oppose a 100% inheritance tax?
How does a predictive coding aid in lossless compression?
How do I handle a potential work/personal life conflict as the manager of one of my friends?
Forgetting the musical notes while performing in concert
What method can I use to design a dungeon difficult enough that the PCs can't make it through without killing them?
Why doesn't using multiple commands with a || or && conditional work?
Extract rows of a table, that include less than x NULLs
How dangerous is XSS?
Codeblocks C++ project won't build or run
Is there a built-in c++ compiler in 12.04?Looking for IDE compiler to build and run a .c source file without creating a projectWhy am I getting compile time errors in this C++ program?Missing compiler error in QtCreator and Qt5.1.0 on Lubuntu 13.04How do I use the GTK+ development libraries in Ubuntu?How to run Code::Blocks from a USB Flash DriveWhich code::block version supports building Dynamic Link LibrariesWhy do I get “undefined reference” errors compiling a simple C++ program with gcc?How to link installed pakage with g++ / atom with gpp-compiler package?CodeBlocks debugger stopped working
I am a new Ubuntu user. I started C++ programming in Windows using Code::Blocks, and would like to try the open source environment of Linux.
I am looking to set up Code::Blocks IDE to develop in C++. I have installed it and used it to create my first hello world application in Ubuntu. I tried to compile and run it, but it has a debugger issue and what appears to be a link issue. When I first started the first C++ test.cpp project, it asked me what compiler to use, and it automatically detected the GNU GCC Compiler which I selected.
Do I need to download anything from the repository to get my C++ code to run in Code::Blocks? Do I need to link anything in my build options that isn't done automatically?
14.04 c++ compiler code-blocks
bumped to the homepage by Community♦ 2 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I am a new Ubuntu user. I started C++ programming in Windows using Code::Blocks, and would like to try the open source environment of Linux.
I am looking to set up Code::Blocks IDE to develop in C++. I have installed it and used it to create my first hello world application in Ubuntu. I tried to compile and run it, but it has a debugger issue and what appears to be a link issue. When I first started the first C++ test.cpp project, it asked me what compiler to use, and it automatically detected the GNU GCC Compiler which I selected.
Do I need to download anything from the repository to get my C++ code to run in Code::Blocks? Do I need to link anything in my build options that isn't done automatically?
14.04 c++ compiler code-blocks
bumped to the homepage by Community♦ 2 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
I upvoted and favorited this because I need to know how Codeblocks and g++ configured properly to suite DevC++ in Ubuntu.
– Ade Malsasa Akbar
Jul 29 '14 at 15:56
yea i wish i could get some solid advice. everything I found isn't enough
– chamburger
Jul 29 '14 at 16:38
add a comment |
I am a new Ubuntu user. I started C++ programming in Windows using Code::Blocks, and would like to try the open source environment of Linux.
I am looking to set up Code::Blocks IDE to develop in C++. I have installed it and used it to create my first hello world application in Ubuntu. I tried to compile and run it, but it has a debugger issue and what appears to be a link issue. When I first started the first C++ test.cpp project, it asked me what compiler to use, and it automatically detected the GNU GCC Compiler which I selected.
Do I need to download anything from the repository to get my C++ code to run in Code::Blocks? Do I need to link anything in my build options that isn't done automatically?
14.04 c++ compiler code-blocks
I am a new Ubuntu user. I started C++ programming in Windows using Code::Blocks, and would like to try the open source environment of Linux.
I am looking to set up Code::Blocks IDE to develop in C++. I have installed it and used it to create my first hello world application in Ubuntu. I tried to compile and run it, but it has a debugger issue and what appears to be a link issue. When I first started the first C++ test.cpp project, it asked me what compiler to use, and it automatically detected the GNU GCC Compiler which I selected.
Do I need to download anything from the repository to get my C++ code to run in Code::Blocks? Do I need to link anything in my build options that isn't done automatically?
14.04 c++ compiler code-blocks
14.04 c++ compiler code-blocks
edited Aug 18 '18 at 0:59
karel
60.7k13132155
60.7k13132155
asked Jul 29 '14 at 15:20
chamburgerchamburger
1412312
1412312
bumped to the homepage by Community♦ 2 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 2 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
I upvoted and favorited this because I need to know how Codeblocks and g++ configured properly to suite DevC++ in Ubuntu.
– Ade Malsasa Akbar
Jul 29 '14 at 15:56
yea i wish i could get some solid advice. everything I found isn't enough
– chamburger
Jul 29 '14 at 16:38
add a comment |
I upvoted and favorited this because I need to know how Codeblocks and g++ configured properly to suite DevC++ in Ubuntu.
– Ade Malsasa Akbar
Jul 29 '14 at 15:56
yea i wish i could get some solid advice. everything I found isn't enough
– chamburger
Jul 29 '14 at 16:38
I upvoted and favorited this because I need to know how Codeblocks and g++ configured properly to suite DevC++ in Ubuntu.
– Ade Malsasa Akbar
Jul 29 '14 at 15:56
I upvoted and favorited this because I need to know how Codeblocks and g++ configured properly to suite DevC++ in Ubuntu.
– Ade Malsasa Akbar
Jul 29 '14 at 15:56
yea i wish i could get some solid advice. everything I found isn't enough
– chamburger
Jul 29 '14 at 16:38
yea i wish i could get some solid advice. everything I found isn't enough
– chamburger
Jul 29 '14 at 16:38
add a comment |
2 Answers
2
active
oldest
votes
Basically, Code::Blocks doesn't require any additional configuration.
You should have installed g++ package. You can do it by issuing command
sudo apt-get install g++
add a comment |
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. 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.
Install the g++ compiler for C++.
sudo apt install g++ xtermOptionally install gcc too if it is not already installed.
sudo apt install gccStart Code::Blocks.
- Select Settings -> Compiler -> Global compiler settings (large blue gear icon in the left pane) -> Toolchain executables tab.
- Select the Program Files tab. It has already been selected in the below screenshot.
- Click the .. button(s) which are marked by the mouse cursor in the below screenshot. Navigate to
/usr/bin. The C compiler should begcc, the C++ compiler should beg++and the Linker for dynamic libs should beg++. - Click the OK button to close the Compiler settings window.
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.

add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f504183%2fcodeblocks-c-project-wont-build-or-run%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Basically, Code::Blocks doesn't require any additional configuration.
You should have installed g++ package. You can do it by issuing command
sudo apt-get install g++
add a comment |
Basically, Code::Blocks doesn't require any additional configuration.
You should have installed g++ package. You can do it by issuing command
sudo apt-get install g++
add a comment |
Basically, Code::Blocks doesn't require any additional configuration.
You should have installed g++ package. You can do it by issuing command
sudo apt-get install g++
Basically, Code::Blocks doesn't require any additional configuration.
You should have installed g++ package. You can do it by issuing command
sudo apt-get install g++
answered Aug 14 '14 at 23:19
enedilenedil
81251526
81251526
add a comment |
add a comment |
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. 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.
Install the g++ compiler for C++.
sudo apt install g++ xtermOptionally install gcc too if it is not already installed.
sudo apt install gccStart Code::Blocks.
- Select Settings -> Compiler -> Global compiler settings (large blue gear icon in the left pane) -> Toolchain executables tab.
- Select the Program Files tab. It has already been selected in the below screenshot.
- Click the .. button(s) which are marked by the mouse cursor in the below screenshot. Navigate to
/usr/bin. The C compiler should begcc, the C++ compiler should beg++and the Linker for dynamic libs should beg++. - Click the OK button to close the Compiler settings window.
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.

add a comment |
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. 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.
Install the g++ compiler for C++.
sudo apt install g++ xtermOptionally install gcc too if it is not already installed.
sudo apt install gccStart Code::Blocks.
- Select Settings -> Compiler -> Global compiler settings (large blue gear icon in the left pane) -> Toolchain executables tab.
- Select the Program Files tab. It has already been selected in the below screenshot.
- Click the .. button(s) which are marked by the mouse cursor in the below screenshot. Navigate to
/usr/bin. The C compiler should begcc, the C++ compiler should beg++and the Linker for dynamic libs should beg++. - Click the OK button to close the Compiler settings window.
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.

add a comment |
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. 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.
Install the g++ compiler for C++.
sudo apt install g++ xtermOptionally install gcc too if it is not already installed.
sudo apt install gccStart Code::Blocks.
- Select Settings -> Compiler -> Global compiler settings (large blue gear icon in the left pane) -> Toolchain executables tab.
- Select the Program Files tab. It has already been selected in the below screenshot.
- Click the .. button(s) which are marked by the mouse cursor in the below screenshot. Navigate to
/usr/bin. The C compiler should begcc, the C++ compiler should beg++and the Linker for dynamic libs should beg++. - Click the OK button to close the Compiler settings window.
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.

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. 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.
Install the g++ compiler for C++.
sudo apt install g++ xtermOptionally install gcc too if it is not already installed.
sudo apt install gccStart Code::Blocks.
- Select Settings -> Compiler -> Global compiler settings (large blue gear icon in the left pane) -> Toolchain executables tab.
- Select the Program Files tab. It has already been selected in the below screenshot.
- Click the .. button(s) which are marked by the mouse cursor in the below screenshot. Navigate to
/usr/bin. The C compiler should begcc, the C++ compiler should beg++and the Linker for dynamic libs should beg++. - Click the OK button to close the Compiler settings window.
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.

edited Aug 18 '18 at 0:43
answered Aug 15 '14 at 1:28
karelkarel
60.7k13132155
60.7k13132155
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f504183%2fcodeblocks-c-project-wont-build-or-run%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I upvoted and favorited this because I need to know how Codeblocks and g++ configured properly to suite DevC++ in Ubuntu.
– Ade Malsasa Akbar
Jul 29 '14 at 15:56
yea i wish i could get some solid advice. everything I found isn't enough
– chamburger
Jul 29 '14 at 16:38