DS-5: CREATING NEW C/C++ ECLIPSE PROJECTS FOR ARM LINUX TARGETS

QUESTION

ANSWER

Using DS-5 you can create C/C++ Eclipse projects for ARM Linux
that can be built using the ARM Linux GCC toolchain included with
DS-5.

To do this:

Select File -> New -> Project...
from the main menu.

Expand the C/C++ group.

Select either C Project or C++ Project.

Click on Next.

Enter a name for your project.

Leave the Use default location option selected so that
the project is created in the default folder shown. Alternatively,
deselect this option and browse to your preferred project
folder.

Expand the Makefile project group.

Select Empty project in the Project type panel.

Click on Finish to create your new project.

Before you can build the project, a Makefile,
containing all the compilation tool settings, is required. The
easiest way to create one is to copy the Makefile from
the example project, hello and paste it into your new
project.

Edit the Makefile as follows:

Locate the line that contains OBJS =
hello.o.

Replace the hello.o object file with the names
of the object files corresponding to your source files.

Save the file.

You can now build the new project:

In the Project Explorer view, select the project that you
want to build.

Select Project -> Build Project from the
main menu.

FORUM THREADS

The following Discussion Forum threads may
provide information related to this topic.