# Eclipse and Header files (\*.h)

**URL:** <https://forum.sierrawireless.com/t/eclipse-and-header-files-h/1628>\
**Category:** Development tools\
**Created:** [September 28, 2007, 12:07pm UTC](https://forum.sierrawireless.com/t/eclipse-and-header-files-h/1628 "2007-09-28T12:07:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![palsson](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@palsson](https://forum.sierrawireless.com/u/palsson)\
**Post date:** [September 28, 2007, 12:07pm UTC](https://forum.sierrawireless.com/t/eclipse-and-header-files-h/1628/1 "2007-09-28T12:07:21Z")

</div>

Hi you all

Iâ€™m experiencing with openAT 4.20 on the Eclipse platform. Iâ€™ve been using Visual Studion 2005 with great success, but I wanted to try it out with Eclipse as well. Iâ€™m using Eclipse version 3.3 and CDT plugin version 4.

The platform is working just fine; creating project, compiling, building and debugging, but the only problem is the header files (.h). Using VS2005, both the src and inc directories appear in my project window and I can as well read the \*.h files and change them. That is apparently not the case in Eclipse. The src directory is there as it should be, but the header files appear in the out [TARGET] directory and are only available for reading. I can not change the code and recompile.

Does anyone recognize the problem?

With regards  
Palsson

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [September 28, 2007, 12:37pm UTC](https://forum.sierrawireless.com/t/eclipse-and-header-files-h/1628/2 "2007-09-28T12:37:47Z")

</div>

> [@palsson](#):
>
> … the header files appear in the out [TARGET] directory

Just by way of information, I note that the v3 tools seem to copy all the .c and .h files into the gcc\out folder when you build…

Don’t know if that helps you at all… ❓

---

<div class="post-metadata">

**Author:** ![palsson](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@palsson](https://forum.sierrawireless.com/u/palsson)\
**Post date:** [September 28, 2007, 1:32pm UTC](https://forum.sierrawireless.com/t/eclipse-and-header-files-h/1628/3 "2007-09-28T13:32:49Z")

</div>

Hi awneil

Not really 🙂  
I don’t know about others, but in VS2005 the .c and .h files get copied into the gcc/out directory!

Funny thing, why eclipse projects doesn’t keep the directory structure of src and inc.

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [September 28, 2007, 3:13pm UTC](https://forum.sierrawireless.com/t/eclipse-and-header-files-h/1628/4 "2007-09-28T15:13:51Z")

</div>

> [@palsson](#):
>
> but in VS2005 the .c and .h files get copied into the gcc/out directory!

It’s actually the Wavecom makefiles that do it, rather than VS itself - and only for a Target Build using GCC;

The Remote build (using the MS native compiler) doesn’t copy anything to the gcc\out folder

Still doesn’t help you. though, I guess… ☹

---

<div class="post-metadata">

**Author:** ![palsson](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@palsson](https://forum.sierrawireless.com/u/palsson)\
**Post date:** [October 21, 2007, 9:23am UTC](https://forum.sierrawireless.com/t/eclipse-and-header-files-h/1628/5 "2007-10-21T09:23:55Z")

</div>

Hi awneil and others

Apparently the new build of C/C++ development tool, CDT 4.0.,1 is the reason for the problem with header \*.h files in Eclipse. If I use earlier builds, i.e. CDT 3.1.2 its working fine.  
I installed the latest builds of both Eclipse and CDT in the beginning, and then I became aware of the problem. On a different computer with Eclipse 3.2.x and CDT 3.1.x things were working fine. So I tried with earlier build of CDT on the latest Eclipse, and its working.

Is there anyone working with Eclipse and openAT?

Regards  
Palsson
