09202024

Last update2016/05/28 14:38

17.ビルドに新しいフォルダーを含める

17.ビルドに新しいフォルダーを含める

To include files from a new folder user will have to change the project settings.


Select the project by right-clicking it. Then select Properties.
In the dialog user must expand C/C++ Build and then Settings
Select Tool Setting-tab and open C Compiler -> Directories.

Here user is able to specify new include directories for the toolchain to consider upon build.

Clean the project and rebuild it.

We recommended to always editing the paths to the directories so that they are relative to the current position.

Also notice that these settings will only apply to the build configuration you are currently modifying.

16.ビルドからのログ情報について

16.ビルドからのログ情報について

To enable logging right-click on your project select Properties. Then select C/C++ Build -> Loggings.


The logs can then by default be found in

WORKSPACE_PATH\.metadata\.plugins\org.eclipse.cdt.ui\MyProject.build.log

15.どうやって新しいLinker scriptを作りますか?

 

15.どうやって新しいLinker scriptを作りますか?

From time to time there is the need for a new Linker script. 
To automatically create one, start by selecting the project to add the script into. Right click the project and select New -> Other…

In the dialog that then pops up you select C/C++ and then Linker script. Click Next.

user must now select the target properly. Here user have the chance to select a new target (The current settings can be found by right-clicking the project -> Properties ->C/C++ Build -> Settings).

The script is now generated.

In order to user the new script user must right-click the project and select Propertiesand in the dialog select C/C++ Build -> Settings -> Tool Settings -> C Linker ->General.

Enter the name of the new linker script.

14.1つだけのファイルはどうやってコンパイルしますか?

14.1つだけのファイルはどうやってコンパイルしますか?

Uncheck Build Automatically found under Project.

Right-click on the file you want to compile and select Build Selected Files(s).

Don’t forget to activate automatic build when you are done.

13.プロジェクトディレクトリの外にあるフォルダーはどのように組み込めますか?

13.プロジェクトディレクトリの外にあるフォルダーはどのように組み込めますか?

By default, all subfolders in the project directory is considered to take part in the project, and no folders outside the project directory is considered to take part in the project.

To include a folder (containing many files) in the project, that is located outside the project directory, perform the following steps:

  1. Use the menu command "File, New, Other..." to open the "New" wizard.
  2. Expand the "General" node and double-click on "Folder".
  3. Click on the "Advanced >>" button that is displayed in the new dialog box.
  4. Select the checkbox "Link to folder in the file system" and browse to the folder external to the project directory.
  5. Finally click on the "Finish" button.

A symbol link to the external folder is now displayed in the Project Explorer view file tree.

If you want the new folder (or rather, the files inside the folder) to take part in building (compilation and linking), also perform the following steps:

  1. Right-click on the symbolic link that was created in the Project Explorer view file tree.
  2. In the context menu, select the menu command "Exclude from build..."
  3. Unselect the checkboxes in the dialog box, to make the files in the folder take part in the project build