Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Failure to import existing C project in CDT
Failure to import existing C project in CDT [message #1694958] Sun, 10 May 2015 21:22 Go to next message
baum wang is currently offline baum wangFriend
Messages: 1
Registered: May 2015
Junior Member
Hi there,

I want to import an existing C project in CDT, but it failed. The process I made is as following.

1. Create a "Hello World ANSI C Project", which is named as "test1". Choose MinGW GCC in toolchains.

2. Build and run "test1" project. It can output "!!!Hello World!!!".

3. Now I want to learn how to import an existing C project. I delete "test1" project in Project Explorer and uncheck the option "delete project contents on disk". So "test1" is not in CDT now, but still in my computer.

4. This step is to import "test1" in CDT. In Project Explorer, I click "import", choose "Existing Code as Makefile Project", browse to where "test1" is located, choose "MinGW GCC" in Toolchain for Indexer Settings, and click "Finish".

Now I can see "test1" is in Project Explorer. But when I build it, an error window pops out saying "Build Project has encountered a problem". I guess the problem might be about the wrong "Build location". I tried to change the "Build directory", but I couldn't. Does anyone know what the problem is?

I included the snapshot of CDT in this post.
  • Attachment: pic1.jpg
    (Size: 396.02KB, Downloaded 127 times)
  • Attachment: pic2.jpg
    (Size: 499.74KB, Downloaded 109 times)
Re: Failure to import existing C project in CDT [message #1695023 is a reply to message #1694958] Mon, 11 May 2015 13:07 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
This belongs in the CDT forum, moving it there.
Previous Topic:Opening ROS C++ project with eclipse
Next Topic:Linker not picking up custom dll
Goto Forum:
  


Current Time: Fri Apr 26 15:16:06 GMT 2024

Powered by FUDForum. Page generated in 0.02959 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top