[En-Nut-Discussion] Howto write my own .h- and .c-libraries
George Ruinelli
george at ruinelli.ch
Sun Sep 4 14:56:02 CEST 2005
For my display, i wrote my own functions, which I want to put into
/opt/ethernut/include/dev/display.h
and /opt/ethernut/dev/display.c
I include it in my program with: #include <dev/display.h>
But I get the error:
test.o(.text+0x56): In function `NutAppMain':
: undefined reference to `init_display'
I think, the compiler could find display.h but not display.c.
(Probably, it misses the object-file?).
What have I to do?
Have i to make a file named display.o and howto make it?
Or have I something to write into the Makefile?
thank you for your help
George Ruinelli
--
Linux ist noch nicht der Himmel, aber ein guter Weg aus der Hölle...
Linux is not the heaven, but it's a way out from the hell...
****************************************
* George Ruinelli *
* Hornstrasse 19 *
* 8308 Illnau SWITZERLAND *
* george at ruinelli.ch - www.ruinelli.ch *
****************************************
More information about the En-Nut-Discussion
mailing list