use c++ with/in mqx

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

use c++ with/in mqx

2,287件の閲覧回数
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,370件の閲覧回数
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,370件の閲覧回数
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,370件の閲覧回数
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 件の賞賛
返信