[En-Nut-Discussion] Unable to compile 'simple'
Harald Kipp
harald.kipp at egnite.de
Thu Jan 26 19:17:35 CET 2006
Now I'm the one who is confused.
Obviously your Makefile contains
LIBS = $(LIBDIR)/nutinit.o -lnutos -lnutarch -lnutdev -lnutarch -lnutcrt
-lnutos $(ADDLIBS)
while mine is
LIBS = $(LIBDIR)/nutinit.o -lnutos -lnutarch -lnutdev -lnutarch -lnutcrt
$(ADDLIBS)
which is exactly the Revision 1.6 in
http://cvs.sourceforge.net/viewcvs.py/ethernut/nut/app/simple/Makefile?rev=1.6&view=auto
and your's is _not_ the same or I'm getting really old.
Anyway, what puzzles me most is, that your LIBS list contains one more entry.
Did you modify simple.c? If, yes that's not a good idea. Better create your
own directory with a different name like simple1 or similar.
Here's a general way to fix this:
1. If a reference is undefined, find the library it is in.
Fortunately Nut/OS directories conform to Nut/OS libs.
2. Add that library to the end of the LIBS list in your
applications Makefile.
3. Repeat 1+2 until no more undefined references appear.
In your case:
1. NutNvMemLoad is in dev.
2. Append -lnutdev to the list of LIBS
Harald
More information about the En-Nut-Discussion
mailing list