use c++ with/in mqx

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

use c++ with/in mqx

2,271 次查看
Garil
Contributor III

Hi Folks !

 

Please Can someone help me find out how to activate or use c++ with mqx in codewarrior ? i read a lot of thread on this forum but still  do not have a solution for that, i also ran the c++ example available in the mqx examples directory without result, when i compile that example it trigger a lot of errors, i m wasting time with this months ago please need help

 

 

Configuration:

 

MXQ 3.8

CW 10.2

LICENCE: Professional

board K53

 

 

thx in advance

Wilson

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

1,354 次查看
c0170
Senior Contributor III

Hello Garil,

 

what are the errors? I have currently MQX 3.8.1 installed and none build errors.

 

Regards,

MartinK

0 项奖励
回复

1,354 次查看
Garil
Contributor III

Hi kojto thx for replying

i have the following error when i implement in cplusplus

"undefined identifier 'class'   "

i cannot also include iostream therefore cannot use "cout"

thx

br

MATT

0 项奖励
回复

1,354 次查看
ivanpajuelo
Contributor II

By default CW10 assume *.h files must be compiled with C compiler.

If you want to use C++ compiler, you can force C++ compiling or use a C++ header extension like *.hh or *.hpp

0 项奖励
回复