Add the source code containing the makefile file to the Eclipse project

Reprinted from https://www.linuxidc.com/Linux/2011-02/32763.htm

A lot of software needs a decent IDE for development or analysis, Eclipse is one of them, at least I personally feel it is very easy to use

I am analyzing a source code recently, and I need to convert this source code into an Eclipse project. After a Google search, the steps are as follows:

1. Create a new C++ empty project, the project type is makefile project, and select Linux GCC;

2. Import the source code together with the makefile as a file system,

File -> import -> General -> File System, select the code to import, import

At this point, eclipse will compile the project according to the makefile file in the code, instead of using the makefile file generated by eclipse itself.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325021596&siteId=291194637