Custom library include ?

I am trying to build a custom library, and I want to include another custom library.

so, in my libraries director, lets say I have the following folders, each with a .h and a .cpp file in it:

Lib1
Lib2
Lib3

In Lib3, I want to include Lib2.h

in Eclipse, I am using:

#include "..\Lib2\Lib2.h"

which Eclipse is recognizing, and allowing me to build.

However, when I go into Arduino, and I #include <Lib3.h>, and I compile, I am getting an error saying:

..\Lib2\Lib2.h" No such file or directory

Is this not allowed in custom libraries in Arduino? Or am I doing something wrong?

Is this not allowed in custom libraries in Arduino?

In the IDE or in Eclipse? The same answer might not apply in both cases.

Unless Lib2 is at a different level than Lib3, then your include statement is wrong, for the IDE. It is not necessary to define the path to the header file, only the name of the header file.

PaulS:

Is this not allowed in custom libraries in Arduino?

In the IDE or in Eclipse? The same answer might not apply in both cases.

Unless Lib2 is at a different level than Lib3, then your include statement is wrong, for the IDE. It is not necessary to define the path to the header file, only the name of the header file.

In the Arduino IDE.

In eclipse, its working perfectly, i get my intellisense off of lib2.

The problem is in Arduino.

So are you saying that in eclipse I should just have: #include "Lib2.h"?

I can do that, I just wont be able to build in eclipse, right?

So are you saying that in eclipse I should just have: #include "Lib2.h"?

No. I'm saying that to compile with the IDE, you should just have #include "Lib2.h".

Ok, thanks, appreciate your help.