C++ iostream compile error with MQX 3.8 + CW10.1

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

C++ iostream compile error with MQX 3.8 + CW10.1

653 Views
autobio
Contributor I

I'm sorry to postthis Message. 

 

I have installed MQX 3.8 today, the default C++ demo works well without standard c++ libraries.

 

but I'd like to  include  some standard C++ libraries, such as <iostream>, <list>, etc.

 

i have added this to comiple option: "${MCUToolsBaseDir}/ColdFire_Support/ewl/EWL_C++/include"

 

and then i just add one line : #include <iostream>, and rebuild the project.

 

there were many errors happened:

undefined identifier 'wmemset' Dragon  line 240 C/C++ problem

undefined identifier 'wmemmove' Dragon  line 240 C/C++ problem
undefined identifier 'wmemcpy' Dragon   line 242 C/C++ problem
undefined identifier 'wmemcmp' Dragon   line 242 C/C++ problem

..........

 

what should i do next?

 

thank you all!


 

0 Kudos
2 Replies

404 Views
c0170
Senior Contributor III

Hi autobio,

 

is there any progress with iostream ?

Start with mqx_cnfg.h file . Check these two : MQX_SUPPRESS_FILE_DEF , MQX_SUPPRESS_STDIO_MACROS.


There are many compilation defines which you could disable if you dont need them (_EWL_NO_IO in iostream as an example).

 

Regards,

MartinK

0 Kudos

404 Views
autobio
Contributor I

It's ok now,  except the <iostream>.

0 Kudos