framework/diag/bit_main.o: In function `atoi': diag/test/main.c:466: undefined reference to `strlen' diag/test/main.c:296: undefined reference to `strtok' diag/test/main.c:297: undefined reference to `strtok' here is the Makefile-> <pre lang="vb">include $(TOPDIR)/config.mk ELF := test #COBJS := $(ELF:=.o) COBJS += diag/test/main.o COBJS += diag/test/display.o COBJS += diag/test/menu.o LIB = $(obj)libbitstubs.a LIBAOBJS-$(ARCH) := LIBAOBJS-$(CPU) := LIBCOBJS = stubs.o LIBOBJS = $(addprefix $(obj),$(LIBAOBJS) $(LIBCOBJS)) SRCS := $(COBJS:.o=.c) $(LIBCOBJS:.o=.c) $(LIBAOBJS:.o=.S) OBJS := $(addprefix $(obj),$(COBJS)) gcclibdir := $(shell dirname `$(CC) -print-libgcc-file-name`) CPPFLAGS += -I.. all: $(obj) $(LIB) $(ELF) $(ELF): $(OBJS) $(LIB) $(LD) -Ttext $(STANDALONE_LOAD_ADDR) -o $@ -e $(SYM_PREFIX)$(notdir $(<:.o=)) $^ -L$(gcclibdir) -lgcc # $(CC) -o $@ -t $(LIB) -L$(gcclibdir) -lgcc # $(LD) -g -Ttext $(STANDALONE_LOAD_ADDR) \ -o $@ -e bit_main $< $(LIB) \ -L$(gcclibdir) -lgcc # $(LD) -g -Ttext $(STANDALONE_LOAD_ADDR) \ -o $@ -e $(SYM_PREFIX)$(notdir $(<:.o=)) $< $(OBJS) \ -L$(gcclibdir) -lgcc $(LIB): $(obj).depend $(LIBOBJS) $(AR) $(ARFLAGS) $@ $(LIBOBJS) ######################################################################### # defines $(obj).depend target include $(SRCTREE)/rules.mk sinclude $(obj).depend #########################################################################
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)