4db8f13f   
   From: miles@gnu.org   
      
   Sam Hu writes:   
   >> // g++ 4.7: -std=c++11 -O2 -Wall -Wextra -pedantic-errors   
   >   
   > Sorry for my stepping in.   
   >   
   > May I ask is this feature available under windows ,I mean MinGW with   
   > MSYS or the like.I just downloaded from MinGW website a whole set of   
   > stuffs by MinGW installer,but unfortunately g++ does not recognize -   
   > std=c++11.Thank you.   
      
   If you use the option "-std=c++0x" (instead of "-std=c++11"), it   
   should work with g++ version 4.6 (the most recent released version).   
      
   I don't have any personal experience with MinGW/MSYS, but I think it   
   shouldn't make any difference as long as the compiler version is   
   recent enough.   
      
   [I'm using a development version of g++,what will become 4.7 when   
   released (which does accept the -std=c++11 option). Of course 4.7   
   supports more C++11/C++0x features, but the particular feature used   
   here (constexpr) was supported in 4.6 too.]   
      
   -miles   
      
   --   
   The automobile has not merely taken over the street, it has dissolved the   
   living tissue of the city. Its appetite for space is absolutely insatiable;   
   moving and parked, it devours urban land, leaving the buildings as mere   
   islands of habitable space in a sea of dangerous and ugly traffic.   
   [James Marston Fitch, New York Times, 1 May 1960]   
      
      
    [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
    [ comp.lang.c++.moderated. First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|