use c++ with/in mqx

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

use c++ with/in mqx

1,652 Views
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

Tags (2)
0 Kudos
Reply
3 Replies

735 Views
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 Kudos
Reply

735 Views
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 Kudos
Reply

735 Views
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 Kudos
Reply