Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
228 views
in Technique[技术] by (71.8m points)

c++ - How to import C makefile project into eclipse or put in under eclipse

I have standard source code package under Linux which requires to run

./configure
make

to compile it (and it works ok).

Mostly these files are C/C++

Is it possible to put this project under Eclipse control? I wish to browse definitions etc...

UPDATE 1

I have Eclipse Indigo running on Ubuntu. It contains CDT of course.

When I choose File-Import, I see no matching option under C/C++. Under General I have Existing Projects into Workspace but I get No project are found to import if I point this wizard to my project root.

UPDATE 2

I have installed Eclipse with Ubuntu package manager. Probably this was wrong.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

First run the ./configure to generate the Makefile. After that, if you have CDT installed,just choose the option "File->New->Makefile Project With Existing Code" and point to the directory where the Makefile is stored.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...