Thread: codeblocks strikes again

  1. #16
    TEIAM - problem solved
    Join Date
    Apr 2012
    Location
    Melbourne Australia
    Posts
    1,907

  2. #17
    TEIAM - problem solved
    Join Date
    Apr 2012
    Location
    Melbourne Australia
    Posts
    1,907
    Quote Originally Posted by cooper1200 View Post
    i will google both im surprised microdaft allows either of them to be ported to linux
    You may be confusing yourself with iTunes and Linux...

  3. #18
    Registered User
    Join Date
    Apr 2019
    Posts
    808
    in settings->compiler->general settings how do i enable the -std=c11 flag. i see it for g++ for c++

  4. #19
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    It is a poor workman who blames his tools.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  5. #20
    TEIAM - problem solved
    Join Date
    Apr 2012
    Location
    Melbourne Australia
    Posts
    1,907
    Tim S is probably the best person you can ask for help with Codeblocks - tell him what problems you are having

  6. #21
    Registered User
    Join Date
    May 2010
    Posts
    4,633
    By the way I find it easier/better to set things like standard in the project settings, not necessarily in the global settings.

  7. #22
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    cooper1200: I am guessing you are using Code::Blocks version 17.12 and building using a Code::Blocks project.
    Edit: If then above is not true tell me the Code::Blocks version and start using an C::B project. If you do not wish to use a C::B project it would be best for you to find another IDE; Code::Blocks works best when using a C::B project.

    Projects -> Build Options
    Check "Have gcc follow the 2011 ISO C language standard" [-std=c11]
    If it is not listed tell me and I will look up the directions to add it.

    Tim S.
    Last edited by stahta01; 06-15-2019 at 09:50 PM.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  8. #23
    Registered User
    Join Date
    Apr 2019
    Posts
    808
    thanks......

    i am using version 16.01 as i am in mint and that was the latest release for mint. I do indeed use a project build. I have looked at the build options and it says have g++ follow c++ 11iso c++language standard [-std=c++ 11]

    thanks for your help
    coop

  9. #24
    Guest
    Guest
    Also, consider that you don't need to use and IDE. You can use a text editor (a fancy one like VSCode/Atom if you want) and e.g. CMake to define your build structure and work from the terminal. No hidden behavior then.

  10. #25
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by cooper1200 View Post
    thanks......

    i am using version 16.01 as i am in mint and that was the latest release for mint. I do indeed use a project build. I have looked at the build options and it says have g++ follow c++ 11iso c++language standard [-std=c++ 11]

    thanks for your help
    coop
    Project -> Build options
    Add the option you want to "other compiler options"
    Code:
    -std=c11
    And, after you do a rebuild verify the option is in the build log.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  11. #26
    Registered User
    Join Date
    Apr 2019
    Posts
    808
    thanks i shall try that

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MS STL strikes again
    By VirtualAce in forum C++ Programming
    Replies: 2
    Last Post: 07-11-2008, 04:56 PM
  2. Aran strikes back
    By Aran in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 08-11-2002, 11:22 AM

Tags for this Thread