I am having trouble with compiler flags on Code::blocks. Beginner to programming





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







-1















I am a beginner at programming, learning from the book "C++ For Dummies".



In the beginning of the book it tells me to select 3 compiler flags in the compiler settings.




  1. Enable extra compiler settings

  2. Have g++ follow the coming C++0x ISO C++ language standard

  3. Have g++ follow the C++11ISO C++ Language standard.


I am able to select the first option no problem.
However with the 2 g++ options I am only able to select one of them.



Is there a way I could select both there are no errors while im learning out of the book?










share|improve this question




















  • 4





    It's nonsense to select two versions of c++ to use at the same time.

    – François Andrieux
    Jan 4 at 18:25






  • 2





    C++0x is C++11 before it was standardized. Just select C++11 and go ahead.

    – Yksisarvinen
    Jan 4 at 18:29











  • You might want to get a more recent edition of that book. There have been a lot of changes and there will be less confusion using a more current edition.

    – doug
    Jan 4 at 18:31











  • Doug, I don't believe there is a newer version of the book I currently have...

    – Ilya Plotnikov
    Jan 5 at 5:12


















-1















I am a beginner at programming, learning from the book "C++ For Dummies".



In the beginning of the book it tells me to select 3 compiler flags in the compiler settings.




  1. Enable extra compiler settings

  2. Have g++ follow the coming C++0x ISO C++ language standard

  3. Have g++ follow the C++11ISO C++ Language standard.


I am able to select the first option no problem.
However with the 2 g++ options I am only able to select one of them.



Is there a way I could select both there are no errors while im learning out of the book?










share|improve this question




















  • 4





    It's nonsense to select two versions of c++ to use at the same time.

    – François Andrieux
    Jan 4 at 18:25






  • 2





    C++0x is C++11 before it was standardized. Just select C++11 and go ahead.

    – Yksisarvinen
    Jan 4 at 18:29











  • You might want to get a more recent edition of that book. There have been a lot of changes and there will be less confusion using a more current edition.

    – doug
    Jan 4 at 18:31











  • Doug, I don't believe there is a newer version of the book I currently have...

    – Ilya Plotnikov
    Jan 5 at 5:12














-1












-1








-1








I am a beginner at programming, learning from the book "C++ For Dummies".



In the beginning of the book it tells me to select 3 compiler flags in the compiler settings.




  1. Enable extra compiler settings

  2. Have g++ follow the coming C++0x ISO C++ language standard

  3. Have g++ follow the C++11ISO C++ Language standard.


I am able to select the first option no problem.
However with the 2 g++ options I am only able to select one of them.



Is there a way I could select both there are no errors while im learning out of the book?










share|improve this question
















I am a beginner at programming, learning from the book "C++ For Dummies".



In the beginning of the book it tells me to select 3 compiler flags in the compiler settings.




  1. Enable extra compiler settings

  2. Have g++ follow the coming C++0x ISO C++ language standard

  3. Have g++ follow the C++11ISO C++ Language standard.


I am able to select the first option no problem.
However with the 2 g++ options I am only able to select one of them.



Is there a way I could select both there are no errors while im learning out of the book?







c++ codeblocks






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 4 at 18:24









François Andrieux

16.7k32950




16.7k32950










asked Jan 4 at 18:24









Ilya PlotnikovIlya Plotnikov

1




1








  • 4





    It's nonsense to select two versions of c++ to use at the same time.

    – François Andrieux
    Jan 4 at 18:25






  • 2





    C++0x is C++11 before it was standardized. Just select C++11 and go ahead.

    – Yksisarvinen
    Jan 4 at 18:29











  • You might want to get a more recent edition of that book. There have been a lot of changes and there will be less confusion using a more current edition.

    – doug
    Jan 4 at 18:31











  • Doug, I don't believe there is a newer version of the book I currently have...

    – Ilya Plotnikov
    Jan 5 at 5:12














  • 4





    It's nonsense to select two versions of c++ to use at the same time.

    – François Andrieux
    Jan 4 at 18:25






  • 2





    C++0x is C++11 before it was standardized. Just select C++11 and go ahead.

    – Yksisarvinen
    Jan 4 at 18:29











  • You might want to get a more recent edition of that book. There have been a lot of changes and there will be less confusion using a more current edition.

    – doug
    Jan 4 at 18:31











  • Doug, I don't believe there is a newer version of the book I currently have...

    – Ilya Plotnikov
    Jan 5 at 5:12








4




4





It's nonsense to select two versions of c++ to use at the same time.

– François Andrieux
Jan 4 at 18:25





It's nonsense to select two versions of c++ to use at the same time.

– François Andrieux
Jan 4 at 18:25




2




2





C++0x is C++11 before it was standardized. Just select C++11 and go ahead.

– Yksisarvinen
Jan 4 at 18:29





C++0x is C++11 before it was standardized. Just select C++11 and go ahead.

– Yksisarvinen
Jan 4 at 18:29













You might want to get a more recent edition of that book. There have been a lot of changes and there will be less confusion using a more current edition.

– doug
Jan 4 at 18:31





You might want to get a more recent edition of that book. There have been a lot of changes and there will be less confusion using a more current edition.

– doug
Jan 4 at 18:31













Doug, I don't believe there is a newer version of the book I currently have...

– Ilya Plotnikov
Jan 5 at 5:12





Doug, I don't believe there is a newer version of the book I currently have...

– Ilya Plotnikov
Jan 5 at 5:12












1 Answer
1






active

oldest

votes


















3














TL;DR





Choose C++11 and you'll be fine.





They are all language standards, so you can only choose either one of them.



Also, C++ Language standards are backward compatible, this meant using a newer standard (C++14, which is a standard distributed in 2014, hence the name) would always include former standards.



(Note that there few are exceptions, like deprecated ones. But you don't really need to worry about that since deprecated one most likely have replacements and the compiler would also kindly warn you)



Now back to why you can't compile with C++11 and C++0x




  1. C++0x is like a draft version of C++11, if you see any English characters after C++, they are likely to be draft standard rather then official standards. There's not much reason to use C++0x rather then C++11.


  2. Since all standards are most likely backward compatible, there's not much reason to compile in an older standard. Of course, you might ask why not always compile in the newer version? The reason is that not all compilers have implemented the newer standards. So if you need backward compiler compatibility then choose an older standard like C++98 (distributed in 1998). Otherwise, I personally recommend compiling in newer standards or at least C++11.



For more info on C++ Language Standards here's a wiki page for you:
https://en.wikipedia.org/wiki/C%2B%2B#Standardization



Also if you want to know more about C++, a reference manual can be found here:
https://en.cppreference.com/w/






share|improve this answer
























  • When it isn't backwards compatible (C++11's change in the auto keyword for example) it is very heavily documented and marked by compiler warnings where possible.

    – user4581301
    Jan 4 at 19:04











  • Wonderful! Thank you!

    – Ilya Plotnikov
    Jan 5 at 4:45












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
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%2fstackoverflow.com%2fquestions%2f54044232%2fi-am-having-trouble-with-compiler-flags-on-codeblocks-beginner-to-programming%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














TL;DR





Choose C++11 and you'll be fine.





They are all language standards, so you can only choose either one of them.



Also, C++ Language standards are backward compatible, this meant using a newer standard (C++14, which is a standard distributed in 2014, hence the name) would always include former standards.



(Note that there few are exceptions, like deprecated ones. But you don't really need to worry about that since deprecated one most likely have replacements and the compiler would also kindly warn you)



Now back to why you can't compile with C++11 and C++0x




  1. C++0x is like a draft version of C++11, if you see any English characters after C++, they are likely to be draft standard rather then official standards. There's not much reason to use C++0x rather then C++11.


  2. Since all standards are most likely backward compatible, there's not much reason to compile in an older standard. Of course, you might ask why not always compile in the newer version? The reason is that not all compilers have implemented the newer standards. So if you need backward compiler compatibility then choose an older standard like C++98 (distributed in 1998). Otherwise, I personally recommend compiling in newer standards or at least C++11.



For more info on C++ Language Standards here's a wiki page for you:
https://en.wikipedia.org/wiki/C%2B%2B#Standardization



Also if you want to know more about C++, a reference manual can be found here:
https://en.cppreference.com/w/






share|improve this answer
























  • When it isn't backwards compatible (C++11's change in the auto keyword for example) it is very heavily documented and marked by compiler warnings where possible.

    – user4581301
    Jan 4 at 19:04











  • Wonderful! Thank you!

    – Ilya Plotnikov
    Jan 5 at 4:45
















3














TL;DR





Choose C++11 and you'll be fine.





They are all language standards, so you can only choose either one of them.



Also, C++ Language standards are backward compatible, this meant using a newer standard (C++14, which is a standard distributed in 2014, hence the name) would always include former standards.



(Note that there few are exceptions, like deprecated ones. But you don't really need to worry about that since deprecated one most likely have replacements and the compiler would also kindly warn you)



Now back to why you can't compile with C++11 and C++0x




  1. C++0x is like a draft version of C++11, if you see any English characters after C++, they are likely to be draft standard rather then official standards. There's not much reason to use C++0x rather then C++11.


  2. Since all standards are most likely backward compatible, there's not much reason to compile in an older standard. Of course, you might ask why not always compile in the newer version? The reason is that not all compilers have implemented the newer standards. So if you need backward compiler compatibility then choose an older standard like C++98 (distributed in 1998). Otherwise, I personally recommend compiling in newer standards or at least C++11.



For more info on C++ Language Standards here's a wiki page for you:
https://en.wikipedia.org/wiki/C%2B%2B#Standardization



Also if you want to know more about C++, a reference manual can be found here:
https://en.cppreference.com/w/






share|improve this answer
























  • When it isn't backwards compatible (C++11's change in the auto keyword for example) it is very heavily documented and marked by compiler warnings where possible.

    – user4581301
    Jan 4 at 19:04











  • Wonderful! Thank you!

    – Ilya Plotnikov
    Jan 5 at 4:45














3












3








3







TL;DR





Choose C++11 and you'll be fine.





They are all language standards, so you can only choose either one of them.



Also, C++ Language standards are backward compatible, this meant using a newer standard (C++14, which is a standard distributed in 2014, hence the name) would always include former standards.



(Note that there few are exceptions, like deprecated ones. But you don't really need to worry about that since deprecated one most likely have replacements and the compiler would also kindly warn you)



Now back to why you can't compile with C++11 and C++0x




  1. C++0x is like a draft version of C++11, if you see any English characters after C++, they are likely to be draft standard rather then official standards. There's not much reason to use C++0x rather then C++11.


  2. Since all standards are most likely backward compatible, there's not much reason to compile in an older standard. Of course, you might ask why not always compile in the newer version? The reason is that not all compilers have implemented the newer standards. So if you need backward compiler compatibility then choose an older standard like C++98 (distributed in 1998). Otherwise, I personally recommend compiling in newer standards or at least C++11.



For more info on C++ Language Standards here's a wiki page for you:
https://en.wikipedia.org/wiki/C%2B%2B#Standardization



Also if you want to know more about C++, a reference manual can be found here:
https://en.cppreference.com/w/






share|improve this answer













TL;DR





Choose C++11 and you'll be fine.





They are all language standards, so you can only choose either one of them.



Also, C++ Language standards are backward compatible, this meant using a newer standard (C++14, which is a standard distributed in 2014, hence the name) would always include former standards.



(Note that there few are exceptions, like deprecated ones. But you don't really need to worry about that since deprecated one most likely have replacements and the compiler would also kindly warn you)



Now back to why you can't compile with C++11 and C++0x




  1. C++0x is like a draft version of C++11, if you see any English characters after C++, they are likely to be draft standard rather then official standards. There's not much reason to use C++0x rather then C++11.


  2. Since all standards are most likely backward compatible, there's not much reason to compile in an older standard. Of course, you might ask why not always compile in the newer version? The reason is that not all compilers have implemented the newer standards. So if you need backward compiler compatibility then choose an older standard like C++98 (distributed in 1998). Otherwise, I personally recommend compiling in newer standards or at least C++11.



For more info on C++ Language Standards here's a wiki page for you:
https://en.wikipedia.org/wiki/C%2B%2B#Standardization



Also if you want to know more about C++, a reference manual can be found here:
https://en.cppreference.com/w/







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 4 at 18:42









facebook-1210159649010054facebook-1210159649010054

516




516













  • When it isn't backwards compatible (C++11's change in the auto keyword for example) it is very heavily documented and marked by compiler warnings where possible.

    – user4581301
    Jan 4 at 19:04











  • Wonderful! Thank you!

    – Ilya Plotnikov
    Jan 5 at 4:45



















  • When it isn't backwards compatible (C++11's change in the auto keyword for example) it is very heavily documented and marked by compiler warnings where possible.

    – user4581301
    Jan 4 at 19:04











  • Wonderful! Thank you!

    – Ilya Plotnikov
    Jan 5 at 4:45

















When it isn't backwards compatible (C++11's change in the auto keyword for example) it is very heavily documented and marked by compiler warnings where possible.

– user4581301
Jan 4 at 19:04





When it isn't backwards compatible (C++11's change in the auto keyword for example) it is very heavily documented and marked by compiler warnings where possible.

– user4581301
Jan 4 at 19:04













Wonderful! Thank you!

– Ilya Plotnikov
Jan 5 at 4:45





Wonderful! Thank you!

– Ilya Plotnikov
Jan 5 at 4:45




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • 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%2fstackoverflow.com%2fquestions%2f54044232%2fi-am-having-trouble-with-compiler-flags-on-codeblocks-beginner-to-programming%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

Monofisismo

Angular Downloading a file using contenturl with Basic Authentication

Olmecas