Build a cross-platform development environment using eclipse + CDT + mingw + SVN

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.