FAQs about using Eclipse in Ubuntu

Source: Internet
Author: User
FAQs about using Eclipse in Ubuntu: 1. During cross-compilation, the system prompts that arm-linux-gcc cannot be found. 1. During cross-compilation, the cross-compilation tool must be installed, installation directory/usr/local/arm/3.4.1. You need to add the path/usr/local/arm/3.4.1/bin in/etc/environment. After modification, set it: PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:

FAQs about using Eclipse in Ubuntu:

I. During cross-compilation, the system prompts that arm-linux-gcc cannot be found.

1. During cross-compilation, you must install the cross-compilation tool. The installation directory is/usr/local/arm/3.4.1, you need to add the path/usr/local/arm/3.4.1/bin in/etc/environment and modify it:

PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: /usr/local/arm/3.4.1/bin "and edit/etc/bash. add export PATH =/usr/local/arm/3.4.1/bin: $ PATH

2. Configure the project as follows in Eclipse:

Create a new C Project in eclipse, click Project-> Properties, and click C/C ++ Build-> Settings in the pop-up box, replace the gcc c Compiler, Linker, and javaser commands with/usr/local/arm/3.4.1/bin/arm-linux-gcc and/usr/local/arm/3.4.1/bin/ arm-linux-, after adding the path/usr/local/arm/3.4.1/bin to/etc/environment, you can also directly enter arm-linux-gcc/.

2. When there is a thread function in the program, in the Project-> Properties dialog box that appears, click C/C ++ Build-> Settings to add pthread to the Libraries (-l) of gcc c Linker-> Libraries.

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.