Hi Experts,
I am currently using mix of code between C++ and C codes.
Which version of arm none-eabi GCC supports both C and C++ mix code usage in much efficient way ?
I am using C++ in --std=c++11 and C in --std=c99 options,
Which C++ compiler toolchain binary will be apt. Is it arm-none-eabi-g++ (or) cpp (or) c++ ?
Is it good to use same compiler (G++) for compiling both C and C++ or any better way suggested.
Zhifei,
I have to correct you the usage of this forum. This forum, named as GNU Toolchain forum is not focusing on Arm Compilers. It is clearly stated at the front page as
"The GNU Arm Embedded toolchains are integrated and validated packages featuring the Arm Embedded GCC compiler, libraries and other GNU tools necessary for bare-metal software development on devices based on the Arm Cortex-M and Cortex-R processors. "
You are partially right that GCC questions can go to GCC community, but only when the questions are surely about upstream GNU tools themselves. For questions specific to GCC releases from Arm, this is still the right place to discuss. For example if the question is about GCC implementation of the latest C++ spec and a bug report generically to all target architectures, gcc-help@gcc.gnu.org is the right place.
For the question like what asked in this thread, an email to gcc-help@gcc.gnu.org should get an answer. It can be asked in a generic way without mentioning arm-none-eabi.
A quick answer: for C use gcc; for C++ use g++. They always mix well no matter which recent gcc version (4.0+) is used.