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.
Best regards
David
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
also with right click on a file in 'Project' window and click on "Options for ..."