Hi, I am new to embedded ARM development. I have read the 'Building your first embedded image' tutorial here:https://developer.arm.com/documentation/102432/latest/
I want to write in C++. In the tutorial example, can I simply replace main.c with main.cpp or are other steps/changes necessary?
I want to target a Cortex M4 processor eventually.
The compiler will default to compile .cpp files as C++, which can also be set with the -xc++ option. Seehttps://developer.arm.com/documentation/101754/0616/armclang-Reference/armclang-Command-line-Options/-x--armclang-
You can specify the C++ standard with --std:https://developer.arm.com/documentation/101754/0616/armclang-Reference/armclang-Command-line-Options/-std