structuring libraries - accessing libraries from within libraries


hello,

i bit confused on library selection procedure:
first:
- still using arduino 0023 because use chipkit max32 boards
- running on windows 7
- base libraries can found in c:\...\mpide-0023-windows-20120903\hardware section
- project can found in c:\users\...\documents\arduino
- have library directory in c:\users\...\documents\arduino\libraries

if build project, lets projecta, in c:\users\...\documents\arduino\projecta.
in project use library, lets liba, in c:\users\...\documents\arduino\libraries\liba
in last directory see liba.h , liba.cpp
lets assume have second library, libb file libb.h , libb.cpp.
we find them in c:\users\...\documents\arduino\libraries\libb

now problem:
assume want use libb in liba used in projecta
projecta.h has line #include <liba.h>
liba.h has line #include <libb.h>
if compile projecta liba.h found receive "file not found" error on libb.h

if put line #include <../libb/libb.h> liba.h receive errors on undefined functions of libb @ link time.

if put libb.h , libb.cpp directory of projecta everythings works.

yes, restarted ide everytime changed in directory hiereachy e.g. moving/creating files

any hints?
is there property tell system libraries , how deep hierarchy?

best regards

quote
any hints?

more hint. appear doing hide use of library (libb) sketch. can't that.

if include liba , libb in sketch, compile (at, @ least there better chance that happen).


Arduino Forum > Using Arduino > Programming Questions > structuring libraries - accessing libraries from within libraries


arduino

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62