Using c++14?

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

Using c++14?

963 次查看
michaelkoller
Contributor III

Hello!

Part of my current K64F project using Kinetis Design Studio under Ubuntu is written in C++, where it uses syntax available since c++14.

I tried a few things, for example:

-- properties -> cross arm c++ compiler -> optimization -> language standard -> next gnu iso c++ (-std=gnu++1y)

-- properties -> c/c++ genereal -> preprocessor include paths, macros, etc. -> providers -> cdt gcc built in... -> add "-std=c++14" without quotation marks at the end of the "command to get compiler specs" line

--g++5 installed

 

But I still get compile errors. The compiler does not recognize the new language standard. Where do I have to change the setting?

 

Best regard and thanks,

Michael

标签 (1)
0 项奖励
回复
1 回复

789 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

HI,

I use KDS for windows but I can't reproduce your issue.

Can you please specify your steps of below with screenshot?

-- properties -> c/c++ genereal -> preprocessor include paths, macros, etc. -> providers -> cdt gcc built in... -> add "-std=c++14" without quotation marks at the end of the "command to get compiler specs" line

--g++5 installed

can you send me the screenshot of error message?

Best Regards,

Jennie

0 项奖励
回复