Deady Online

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

Distribuiti | 
 

 How to add c++ 11 support in devcpp mingw, 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 devcpp mingw, guide   Lun Mar 21, 2016 9:33 pm

This is a guide about how can you add C++ 11 support to DevCpp mingw.

Steps:
1. Open DevCpp.
2. Go to Tools -> Compiler Options -> Add the following commands when calling the compiler:
You have to write this line:
-std=c++11

if this above doesn't work, try this one:
-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 devcpp mingw, 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: