Environment variables need to be added
Add method: Right-click my computer> Properties> advanced> environment variable
User variables.
The environment variables to be added include:
1. Path: C:/dev-CPP/bin. If this variable already exists on the computer, add "; C:/dev-CPP/bin" to the original variable, the path must be separated by semicolons.
2. LIBRARY_PATH: C:/dev-CPP/lib
3. c_include_path: C:/dev-CPP/include
4. cplus_include_path: C:/dev-CPP/lib/GCC/mingw32/3.4.2/include;
C:/dev-CPP/include/C ++/3.4.2/backward;
C:/dev-CPP/include/C ++/3.4.2/mingw32;
C:/Dec-CPP/include/C ++/3.4.2;
C:/dev-CPP/include
These are based on devcpp installed in the C root directory as an example, the specific path is also seen in Dev-CPP. Open Dev-CPP, [Tool]-> [compiler options]-> [Directory], these four environment variables correspond to "binary", "library", "C inclusion file", and "c ++ inclusion file" under the [Directory] tab respectively ".
Then you can use the make command in the Command Prompt window to compile the C/C ++ file. Using the make command, we recommend that you do not write a suffix for the file to be compiled, otherwise, "Nothing to be done for XXX. CPP.
After adding environment variables, you can also directly call GCC compilation in UE. The setting method in UE is as follows:
Open the [advanced]-> [toolbar configuration...] dialog box and enter
Command Line: Make % N
Working directory: % P
Menu name: GCC Compilation
Click "insert" on the right and click "OK ". If you click "OK" first, your effort will be wasted.