Hi All,
I am working on Petalinux on MicroZed board. I would like to know if there is a way I can enable C++11 in my projects.
Hi All,
I am working on Petalinux on MicroZed board. I would like to know if there is a way I can enable C++11 in my projects.
Hi yathindra,
It seems that this should be supported. I am currently using 2016.2 tools for my builds and they come with "crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC" which should (mostly) support that standard you are referring to according to this:
https://gcc.gnu.org/projects/cxx-status.html#cxx11
According to that page, this mode can be selected with the -std=c++11 command-line flag, or -std=gnu++11 to enable GNU extensions as well. So it seems like you could enable C++11 with the appropriate CFLAGS set in your PetaLinux application Makefile right?
Take a look at UG1144 for some further guidance on building PetaLinux applications:
http://www.xilinx.com/support/documentation/sw_manuals/petalinux2015_2/ug1144-petalinux-tools-reference-guide.pdf
This is actually a Xilinx tools specific question and should be directed to one of the Xilinx Community forums, probably the Embedded Linux forum: https://forums.xilinx.com/t5/Embedded-Linux/bd-p/ELINUX
If you do decide to post there, please include a link here so that other community members can follow the answer trail.
Regards,
-Kevin