I'm working through the air_quality tutorial, and am encountering some problems 
that I'm not sure the root of. 

I've created the proper files:
ls -R libs/my_driver/senseair/
total 4
0 drwxr-xr-x  3 dsimmons  staff  102 Jan  9 16:42 include
4 -rw-r--r--  1 dsimmons  staff  869 Jan  9 16:51 pkg.yml
0 drwxr-xr-x  3 dsimmons  staff  102 Jan  9 16:44 src

libs/my_driver/senseair//include:
total 4
4 -rw-r--r--  1 dsimmons  staff  904 Jan  9 16:42 senseair.h

libs/my_driver/senseair//src:
total 4
4 -rw-r--r--  1 dsimmons  staff  839 Jan  9 16:43 senseair.c

The driver's pkg.yml file looks right:
DSimmons-Pro:myproj dsimmons$ cat libs/my_driver/senseair/pkg.yml

pkg.name: libs/my_driver/senseair
pkg.deps:
    - "@apache-mynewt-core/hw/hal"


and I've added 
 - libs/my_driver/senseair
to the pkg.deps in my app's pkg.yml file. 

All that looks right to me. And is in line with the Tutorial. 

When I then add  #include "senseair/senseair.h"

to my main.c I get:
Error: main.c:30:31: fatal error: senseair/senseair.h: No such file or directory

I've tried "" and <> and both produce the same error. 

What have I missed?

Best regards,
dg
--
David G. Simmons
(919) 534-5099
Web <https://davidgs.com/> • Blog <https://davidgs.com/davidgs_blog> • Linkedin 
<http://linkedin.com/in/davidgsimmons> • Twitter 
<http://twitter.com/TechEvangelist1> • GitHub <http://github.com/davidgs>
/** Message digitally signed for security and authenticity.  
* If you cannot read the PGP.sig attachment, please go to 
 * http://www.gnupg.com/ <http://www.gnupg.com/> Secure your email!!!
 * Public key available at keyserver.pgp.com <http://keyserver.pgp.com/>
**/
♺ This email uses 100% recycled electrons. Don't blow it by printing!

There are only 2 hard things in computer science: Cache invalidation, naming 
things, and off-by-one errors.


Reply via email to