An error such as export not a valid identifier occurs when you want to add environment variables to the path during cross-compilation.
The temporary solution is to use export input, but only valid for the current terminal window:
Path = $ path:/opt/friendlyarm/toolschain/4.5.1/binexport path
Then you can add the environment path. However, if you need to directly use the arm-Linux-GCC command in all newly created terminals, You need to modify it ~ /. Bashrc file, enter the following in the terminal:
VI ~ /. Bashrc
Add the following in the last line:
Export Path = $ path:/opt/friendlyarm/toolschain/4.5.1/bin
Save and exit, and then start a new terminal. You can use the arm-Linux-GCC cross-compilation chain. Input arm-Linux-gcc-stream to see the version, this means that the environment variable has been added.
OriginalArticle, You are welcome to reprint it. For more information, see blog.csdn.net/jjzhoujun2010.
Author: Dream fly