WindowsEnvironment:
1,InstallEclisp + CDT;
2,InstallMingwTo set environment variables. For example:
Set Path = % PATH %; D: "mingw" bin
Set LIBRARY_PATH = D: "mingw" lib
Set c_include_path = D: "mingw" include
Set cplus_include_path = D: "mingw" include "C ++" 3.2.3; D: "mingw" include "C ++" 3.2.3 "mingw32; D: "mingw" include "C ++" 3.2.3 "backward; D:" mingw "include
3, InstallationTsvnOrEclipseInstallSubsvn;
LinuxEnvironment:
1,InstallEclipse + CDT
2,InstallJRE, SetJREOr directlyJRECopyEclipseDirectory.
3,InstallSVN.
Project running settings:
1. IncludeDirectory.
A)InPerference-> C/C ++-> debug-> common source LookupTo addIncludeDirectory.
B)Currently, you have not found whether you can add a project directly.
2,Create a project,
Note the following when creating a project:WindowInstallMingw complier, InLinuxSelectGcc.
CreateSRCDirectory, put allCodePut files inSRCDirectory. AndSVNCode synchronization.
3. BuildPath settings
If the directory is not set, a message is displayed.: Nothing to build.
Project-> properties-> C/C ++ build-> build VariablesAddBuild variables.
Select the type: build_file, directory, value: SRC
4Run the test.