My library inclusions are: -lstdc++ -lgcc -lc
Order is important on library inclusions unless you use the -( -) grouping
arguments. I know that memcpy and sprintf would be in libc, so if they
are being pulled in by libgcc, libstdc++ or libsupc++, that would be a problem
with your current commands.
I'm also curious... you use -mthumb-interwork, but you are not specifying
-mthumb for your c/c++ compilation. This will set the interwork flag, but
compile ARM. (OK to do, just not sure it's what you wanted.)
- John
From: "j_north2002" <johnny_north@...>
> CPPFLAGS = -I $(INCDIR2) -I $(INCDIR) -I $(PRJDIR) -mthumb-
> interwork -c -g -O2 -Wall -fverbose-asm
> SFLAGS = -I $(INCDIR2) -I $(INCDIR) -mthumb-interwork
> LDFLAGS = -L $(LIBDIR) -L $(LIBDIR2) -T lnkscript -lg -lc -lgcc -
> lstdc++ -lsupc++
>
> still get:
> undef ref to __gccmain - memcpy - sprintf