Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » [Solved] Cross-project #include error
[Solved] Cross-project #include error [message #903152] Wed, 22 August 2012 05:02 Go to next message
Eclipse UserFriend
I have two projects, an executable and a static library, each with their own source folder. There are many instances of a file from one being #included from the other:

When I try to compile either project, it finds header files from the other project ok, but fails when they in turn include a file from this project.

==================================

Edit: This wasn't a CDT problem, I needed to add the path to 'this project' to the includes.

[Updated on: Thu, 30 August 2012 11:19] by Moderator

Re: Cross-project #include error [message #903288 is a reply to message #903152] Wed, 22 August 2012 17:13 Go to previous messageGo to next message
Eclipse UserFriend
hi,

I had similar problems building a project. For some time everything worked well. But then with some changes I got error messages that header files cannot be found and so on.

My solution was to switch to cmake. I had to learn how to use it but then cmake did the job - with some help of some friends Smile
Re: Cross-project #include error [message #903530 is a reply to message #903288] Fri, 24 August 2012 03:35 Go to previous message
Eclipse UserFriend
Thanks, but we already have a makefile working for this project, and I'm required to convert it to Eclipse.

Anyone else know any ways to get this working via Eclipse? I'd rather not have a pre-build step that copies the entire contents of two projects to a new folder if I can avoid it!
Previous Topic:Directory Management
Next Topic:[SOLVED] Debugging not working while running works
Goto Forum:
  


Current Time: Thu Jul 17 01:42:52 EDT 2025

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

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

Back to the top