The example about c++ progran under DS-5 CPP directory is compiled by me with the armcc ,not gcc. But there is an error when compile。
Error: C3321E: automatic configuration failed - could not determine configuration from GCC
make: *** [arm_linux_config.xml] Error 1
I do not know the reason. Please tell me the answer. Thanks!
Hi mwsealey,
Thank your answer!
Now I want to build a bare metal project on the Cortex-A5 soc and NOT to use the linux OS。 The project is coded by C++。 I want to use the ARMCC to compile the project。 So I test the CPP project under the DS-5 tool。
The --arm-_inux_* parameter sets are for the linux application and armcc does not support these parameter now? Is it correct?
If I want to build a bare metal project, I only use the armcc to compile the c++ project without the --arm_linux_* parameter? And the lib and headfile which the bare metal project need are under the inlude directory and lib directory under the DS-5 install directory?. I do not care the "SYSROOT=../distribution/filesystem/armv5t_mtx" parameter and directory?. The directory "SYSROOT" is for the linux apliaction?. Are all correct? Please give me an answer! Thanks!
Select File -> New -> C++ Project from the menu.
Then select Bare Metal Executable, empty project, and ARM Compiler 5 as the compiler. Give the project a name. and click OK.
In the Project Explorer view, select your project, right click, New -> File, and create a file with a .cpp ending (this is a necessary ending).
Write some code therein, for example:
#include <iostream> using namespace std; int main() { cout << "Hello C++ World" << endl; return 0; }
This should now just build when you select from the menu Project -> Build Project.