Support C++11 syntax

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Support C++11 syntax

1,928 次查看
slamguy
Contributor I

I use CodeWarrior for PA v 10.4. I build my project with -std=c++11 option. It compiles and runs ok, but IDE doesn't recognize a new c++11 syntax and shows errors. Is it possible to let lexer know about a new c++11 syntax?

标签 (1)
标记 (1)
0 项奖励
回复
3 回复数

1,452 次查看
trytohelp
NXP Employee
NXP Employee

Hi,

You can build the project with -std=c++11 option ?

Where do you set the option ?

For my understanding this is not supporting.

Pascal

0 项奖励
回复

1,452 次查看
slamguy
Contributor I

It is supported since gcc-4.8.2 is used.

To compile with C++11 enabled go to Project->Properties->Compiler->Miscellaneous.

In Other flags specify: -std=c++11

I've got a response from the support regarding my original question:

"The problem is a GUI annoyance and the build tools in 10.4 and 10.5 are in fact supporting
C++11. I'll file an issue in our internal system to our CW IDE team and they'll look for
a solution (it will be prioritized together with other items)."

0 项奖励
回复

1,452 次查看
trytohelp
NXP Employee
NXP Employee

Hi,

It seems you were in contact with colleague for this problem via the SR# 1-3996175191.

Now I've understood the problem.

This is not on build tool chain but the IDE (Eclipse) doesn't recognized the c++11 keyword.

This is a problem with Eclipse.

Following the info I got, the development team was already in the loop and the problem has been logged in our bug base under the number DTCWPA-3.

The development team will investigate the problem however at this time we can not provide you more information (as release date).

I recommend you to sign the newsletter.


Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复