Embedded Intel® Core™ Processors
Communicate Intel® Core™ Hardware, Software, Firmware, Graphics Concerns
1194 Discussions

compiling with c++11 using make command

well
New Contributor I
773 Views

Dear intel team,

When trying to compile the host code using 'make' command in MobaXterm terminal. 

I got this error: 

 

In file included from /usr/include/c++/4.8.2/array:35:0,
                     from host/src/host.cpp:16:
    /usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
     #error This file requires compiler and library support for the \

I need to know why this error appears, and how to fix it ??  

0 Kudos
3 Replies
CarlosAM_INTEL
Moderator
752 Views

Hello, @well:

Thank you for contacting Intel Embedded Community.

You should address as a reference the questions related to the cited third-party tool by filling out the form stated on the following website:

 https://mobaxterm.mobatek.net/contact.html

Best regards,

@CarlosAM_INTEL.

0 Kudos
well
New Contributor I
736 Views

Thank you very much. The issue is solved by adding -std=c++11 to the Makefile 

0 Kudos
CarlosAM_INTEL
Moderator
723 Views

Hello, @well:

Thanks for share your solution to this situation.

Please do not hesitate to contact us again with all the information about the Intel Embedded devices related to your future questions.

Best regards,

@CarlosAM_INTEL.

0 Kudos
Reply