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













1















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?










share|improve this question
















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















1















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?










share|improve this question
















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













1












1








1


1






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?










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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










2 Answers
2






active

oldest

votes


















0














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++





share|improve this answer






























    0














    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.




    1. Install the g++ compiler for C++.



      sudo apt install g++ xterm 


      Optionally install gcc too if it is not already installed.



      sudo apt install gcc 


    2. Start Code::Blocks.


    3. Select Settings -> Compiler -> Global compiler settings (large blue gear icon in the left pane) -> Toolchain executables tab.

    4. Select the Program Files tab. It has already been selected in the below screenshot.

    5. Click the .. button(s) which are marked by the mouse cursor in the below screenshot. Navigate to /usr/bin. The C compiler should be gcc, the C++ compiler should be g++ and the Linker for dynamic libs should be g++.

    6. 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.



    enter image description here






    share|improve this answer

























      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
      );



      );













      draft saved

      draft discarded


















      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









      0














      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++





      share|improve this answer



























        0














        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++





        share|improve this answer

























          0












          0








          0







          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++





          share|improve this answer













          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++






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 14 '14 at 23:19









          enedilenedil

          81251526




          81251526























              0














              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.




              1. Install the g++ compiler for C++.



                sudo apt install g++ xterm 


                Optionally install gcc too if it is not already installed.



                sudo apt install gcc 


              2. Start Code::Blocks.


              3. Select Settings -> Compiler -> Global compiler settings (large blue gear icon in the left pane) -> Toolchain executables tab.

              4. Select the Program Files tab. It has already been selected in the below screenshot.

              5. Click the .. button(s) which are marked by the mouse cursor in the below screenshot. Navigate to /usr/bin. The C compiler should be gcc, the C++ compiler should be g++ and the Linker for dynamic libs should be g++.

              6. 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.



              enter image description here






              share|improve this answer





























                0














                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.




                1. Install the g++ compiler for C++.



                  sudo apt install g++ xterm 


                  Optionally install gcc too if it is not already installed.



                  sudo apt install gcc 


                2. Start Code::Blocks.


                3. Select Settings -> Compiler -> Global compiler settings (large blue gear icon in the left pane) -> Toolchain executables tab.

                4. Select the Program Files tab. It has already been selected in the below screenshot.

                5. Click the .. button(s) which are marked by the mouse cursor in the below screenshot. Navigate to /usr/bin. The C compiler should be gcc, the C++ compiler should be g++ and the Linker for dynamic libs should be g++.

                6. 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.



                enter image description here






                share|improve this answer



























                  0












                  0








                  0







                  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.




                  1. Install the g++ compiler for C++.



                    sudo apt install g++ xterm 


                    Optionally install gcc too if it is not already installed.



                    sudo apt install gcc 


                  2. Start Code::Blocks.


                  3. Select Settings -> Compiler -> Global compiler settings (large blue gear icon in the left pane) -> Toolchain executables tab.

                  4. Select the Program Files tab. It has already been selected in the below screenshot.

                  5. Click the .. button(s) which are marked by the mouse cursor in the below screenshot. Navigate to /usr/bin. The C compiler should be gcc, the C++ compiler should be g++ and the Linker for dynamic libs should be g++.

                  6. 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.



                  enter image description here






                  share|improve this answer















                  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.




                  1. Install the g++ compiler for C++.



                    sudo apt install g++ xterm 


                    Optionally install gcc too if it is not already installed.



                    sudo apt install gcc 


                  2. Start Code::Blocks.


                  3. Select Settings -> Compiler -> Global compiler settings (large blue gear icon in the left pane) -> Toolchain executables tab.

                  4. Select the Program Files tab. It has already been selected in the below screenshot.

                  5. Click the .. button(s) which are marked by the mouse cursor in the below screenshot. Navigate to /usr/bin. The C compiler should be gcc, the C++ compiler should be g++ and the Linker for dynamic libs should be g++.

                  6. 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.



                  enter image description here







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Aug 18 '18 at 0:43

























                  answered Aug 15 '14 at 1:28









                  karelkarel

                  60.7k13132155




                  60.7k13132155



























                      draft saved

                      draft discarded
















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      Are there any comparative studies done between Ashtavakra Gita and Buddhim?How is it wrong to believe that a self exists, or that it doesn't?Can you criticise or improve Ven. Bodhi's description of MahayanaWas the doctrine of 'Anatta', accepted as doctrine by modern Buddhism, actually taught by the Buddha?Relationship between Buddhism, Hinduism and Yoga?Comparison of Nirvana, Tao and Brahman/AtmaIs there a distinction between “ego identity” and “craving/hating”?Are there many differences between Taoism and Buddhism?Loss of “faith” in buddhismSimilarity between creation in Abrahamic religions and beginning of life in Earth mentioned Agganna Sutta?Are there studies about the difference between meditating in the morning versus in the evening?Can one follow Hinduism and Buddhism at the same time?Are there any prohibitions on participating in other religion's practices?Psychology of 'flow'

                      fallocate: fallocate failed: Text file busy in Ubuntu 17.04? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)defragmenting and increasing performance of old lubuntu system with swap partitionIssue with increasing the root partition from the swapthis /usr/bin/dpkg returned error || ubuntu-16.04, 64bitDefault 17.04 swap file locationHow to Resize Ubuntu 17.04 Zesty Swap file size?Ubuntu freezes from online formsMy Laptop is not starting after upgrade ubuntu 16.04 (Kernel 4.8.0-38 to 04.10.0-36)hcp: ERROR: FALLOCATE FAILED!Not sure my swap is being usedWine 3.0 asking for more virtual free swap

                      Where else does the Shulchan Aruch quote an authority by name?Parashat Metzora+HagadolPesach/PassoverShulchan Aruch UTF-8Anonymous glosses in the Shulchan AruchWhy is the Shulchan Aruch definitive?Siman 32, Kitzur Shulchan Aruch: UntranslatedLitvaks/Yeshivish and Shulchan AruchBuying a Shulchan AruchEnglish version of SHULCHAN ARUCHIs there any place where Shulchan Aruch rules with the Rosh against the Rif and Rambam?Are there practices where Sepharadim do not hold by Shulchan Aruch?5th part of the shulchan aruch