知道g ++ Windows中的代码块的版本 [英] Know g++ Version of Code blocks in Windows

查看:161
本文介绍了知道g ++ Windows中的代码块的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Interviewstreet.com上解决问题。他们说他们使用C ++版本g ++ 4.6.3,C0x模式。
我在代码块上写代码。所以我想知道哪个版本的iam使用在代码块是在C0x模式或C11模式??

I am solving questions on Interviewstreet.com. They said they use C++ version g++ 4.6.3,C0x mode. I am writing code on code blocks. So i want to know which version iam using in code blocks is it in C0x mode or C11 mode??

我试过使用g ++ --version我得到g ++ TDM- 2 mingw32 4.4.1。可以告诉我在哪里可以得到这种信息。
C ++ 0x和C ++ 11之间的区别是什么?

I have tried using g++ --version i got g++ TDM-2 mingw32 4.4.1.Can u tell me where i can get this kind of information. what is the difference between C++ 0x and C++11??

推荐答案

版本的g ++到4.6.3(或更高版本)如果你想使用c ++ 11的功能。有关如何为deb linux执行此操作,请参见此问题及其答案

You'll have to update the version of g++ to 4.6.3 (or later) if you want to use c++11 features. See this question and it's answers on how to do it for deb linux.

然后你必须在选项中传递 - std = c ++ 0x 给编译器。您应该能够在代码块中轻松找到它们。

Then you'll have to pass --std=c++0x to the compiler in options. You should be able to easily find them in codeblocks.


C ++ 0x和C ++ 11之间的区别是什么? >

what is the difference between C++ 0x and C++11??

c ++ 0x是c ++ 11的同义词。

c++0x is a synonym for c++11.

这篇关于知道g ++ Windows中的代码块的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆