Building libraries?


hi! im buidling library interfacing serial device. far have
program.c includes device.h, device.c using lot of calls serial1.write() , serial.write() both "wprogram.h" , <serial.h> #included in device.c.

when "verify" program.c error saying: device.c: 'serial' undeclared.. other files need include build program?

hi,
you need 1 less.
it's enough include "wprogram.h". makes serial.whatever() functions available code. remove #include<serial.h> statement , try again. (actually  there no "serial.h" file arduino-core, include fail)
eberhard


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Building libraries?


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums