Skip to main content



      Home
Home » Newcomers » Newcomers » Include files not being found
Include files not being found [message #254613] Thu, 24 April 2008 00:51 Go to next message
Eclipse UserFriend
Originally posted by: eric.fowler.gmail.com

I am building in Eclipse 3.3.0 (Europa) on Fedora.

Recently I decided to add a third party class library comprising c++ headers
only to my project.

I included the files in the usual way (#define) and compiled but the header
was not found. I went into the project properties and added the directory
containing the headers to C/C++ Include Paths and Symbols. No go. I
exported the new path. Still no go. I looked at the build spew in the
console and it is using -I all/kinds/of/stuff, but not my directory.

Where is this stuff going?? How is it getting lost? I have also gone in the
C/C++ Make Project tab and added it there like so:

INCLUDE set to /home/eric/libkdtree:${env_var:INCLUDE}
and
INC set to /home/eric/libkdtree:${env_var:INC}

but still no go ...

What's up with this?

Eric
Re: Include files not being found [message #254620 is a reply to message #254613] Thu, 24 April 2008 07:12 Go to previous messageGo to next message
Eclipse UserFriend
Eric Fowler wrote:
> I am building in Eclipse 3.3.0 (Europa) on Fedora.
>
> Recently I decided to add a third party class library comprising c++ headers
> only to my project.
>
> I included the files in the usual way (#define) and compiled but the header

#define?

> was not found. I went into the project properties and added the directory
> containing the headers to C/C++ Include Paths and Symbols. No go. I
> exported the new path. Still no go. I looked at the build spew in the
> console and it is using -I all/kinds/of/stuff, but not my directory.

What kind of project do you have? Managed or Makefile?
The difference is that in the latter case, you have to write and
maintain your makefile yourself and adding an include path in the UI
only helps the parser find the inclusions, but not the compiler.

> Where is this stuff going?? How is it getting lost? I have also gone in the
> C/C++ Make Project tab and added it there like so:

A "C/C++ Make Project tab" is unknown to me. Do you have a vanilla
Eclipse/CDT installation or are there some additional plug-ins?

> INCLUDE set to /home/eric/libkdtree:${env_var:INCLUDE}
> and
> INC set to /home/eric/libkdtree:${env_var:INC}
>
> but still no go ...
>
> What's up with this?
>
> Eric

You have a better chance to get answers to your questions on
eclipse.tools.cdt (you posted there before).

--
Anton Leherbauer
Wind River CDT Team, Austria
Re: Include files not being found [message #254629 is a reply to message #254620] Thu, 24 April 2008 09:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eric.fowler.gmail.com

Anton Leherbauer wrote:

> Eric Fowler wrote:
>> I am building in Eclipse 3.3.0 (Europa) on Fedora.
>>
>> Recently I decided to add a third party class library comprising c++
>> headers only to my project.
>>
>> I included the files in the usual way (#define) and compiled but the
>> header
>
> #define?

#include <sorry.h>

>
>> was not found. I went into the project properties and added the directory
>> containing the headers to C/C++ Include Paths and Symbols. No go. I
>> exported the new path. Still no go. I looked at the build spew in the
>> console and it is using -I all/kinds/of/stuff, but not my directory.
>
> What kind of project do you have? Managed or Makefile?

..... mmm .... Makefile. I think. Yep.

> The difference is that in the latter case, you have to write and
> maintain your makefile yourself and adding an include path in the UI
> only helps the parser find the inclusions, but not the compiler.
>
>> Where is this stuff going?? How is it getting lost? I have also gone in
>> the C/C++ Make Project tab and added it there like so:
>
> A "C/C++ Make Project tab" is unknown to me. Do you have a vanilla
> Eclipse/CDT installation or are there some additional plug-ins?

Funny you ask, I am using the Trolltech Qt Plugin. Perhaps that
functionality is coming from the plugin - I am not really sure.

>
>> INCLUDE set to /home/eric/libkdtree:${env_var:INCLUDE}
>> and
>> INC set to /home/eric/libkdtree:${env_var:INC}
>>
>> but still no go ...
>>
>> What's up with this?
>>
>> Eric
>
> You have a better chance to get answers to your questions on
> eclipse.tools.cdt (you posted there before).
>

Or Qt. It seemed like a n00b question to me though.

Eric
Re: Include files not being found [message #255067 is a reply to message #254629] Wed, 30 April 2008 16:53 Go to previous message
Eclipse UserFriend
Check if the makefile contains references to your include directory.
You may have to add it manually.
Ray

Eric Fowler wrote:
> Anton Leherbauer wrote:
>
>> Eric Fowler wrote:
>>> I am building in Eclipse 3.3.0 (Europa) on Fedora.
>>>
>>> Recently I decided to add a third party class library comprising c++
>>> headers only to my project.
>>>
>>> I included the files in the usual way (#define) and compiled but the
>>> header
>> #define?
>
> #include <sorry.h>
>
>>> was not found. I went into the project properties and added the directory
>>> containing the headers to C/C++ Include Paths and Symbols. No go. I
>>> exported the new path. Still no go. I looked at the build spew in the
>>> console and it is using -I all/kinds/of/stuff, but not my directory.
>> What kind of project do you have? Managed or Makefile?
>
> .... mmm .... Makefile. I think. Yep.
>
>> The difference is that in the latter case, you have to write and
>> maintain your makefile yourself and adding an include path in the UI
>> only helps the parser find the inclusions, but not the compiler.
>>
>>> Where is this stuff going?? How is it getting lost? I have also gone in
>>> the C/C++ Make Project tab and added it there like so:
>> A "C/C++ Make Project tab" is unknown to me. Do you have a vanilla
>> Eclipse/CDT installation or are there some additional plug-ins?
>
> Funny you ask, I am using the Trolltech Qt Plugin. Perhaps that
> functionality is coming from the plugin - I am not really sure.
>
>>> INCLUDE set to /home/eric/libkdtree:${env_var:INCLUDE}
>>> and
>>> INC set to /home/eric/libkdtree:${env_var:INC}
>>>
>>> but still no go ...
>>>
>>> What's up with this?
>>>
>>> Eric
>> You have a better chance to get answers to your questions on
>> eclipse.tools.cdt (you posted there before).
>>
>
> Or Qt. It seemed like a n00b question to me though.
>
> Eric
>
Previous Topic:build project
Next Topic:missing project description files
Goto Forum:
  


Current Time: Wed Sep 24 17:13:07 EDT 2025

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

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

Back to the top