Deady Online

Delivering information to the world. You are always welcomed to join!
 
AcasaPortalCalendarFAQCautareMembriGrupuriInregistrareConectare

Distribuiti | 
 

 How to add c++ 11 support in codeblocks with gnu gcc compiler, guide

Vezi subiectul anterior Vezi subiectul urmator In jos 
AutorMesaj
Oscuridao
Admin


Mesaje : 330
Data de inscriere : 27/08/2011
Varsta : 22
Localizare : Romania

MesajSubiect: How to add c++ 11 support in codeblocks with gnu gcc compiler, guide   Lun Mar 21, 2016 9:39 pm

This is a guide about how can you add C++ 11 support to codeblocks with gnu gcc compiler mingw.

Steps:
1. Open Codeblocks;
2. Go to Settings -> Compiler -> Compiler Settings -> Compiler Flags -> click on: "Have g++ follow the C++11 ISO C++ language standard [-std=c++11]";
if this doesn't work for you go the next line:
"Have g++ follow the coming C++0x ISO C++ language standard [-std=C++0x]";

These are the few things than will be able to use after this:
- null pointer initialization with nullptr;

Example:
int c*;
c=nullptr;
- scoped enums;
Example:
enum name {write, black, green};
name ename;
ename=name::black;


-much more
Sus In jos
Vezi profilul utilizatorului http://deady.dk-one.com
 
How to add c++ 11 support in codeblocks with gnu gcc compiler, guide
Vezi subiectul anterior Vezi subiectul urmator Sus 
Pagina 1 din 1

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
Deady Online :: Others :: Altele!-
Mergi direct la: