[Sdcc-user] Undefined reference error for function in static library

2016-03-27 Thread David McMackins
I'm running Debian Sid, using SDCC 3.5.0 for the gbz80 architecture. In my statically-linked library, I have been using only one source file, but today I had a reason to add another. In this second source file, I defined gb_memcpy which is a version of standard memcpy that uses an 8-bit length par

Re: [Sdcc-user] Undefined reference error for function in static library

2016-03-28 Thread David McMackins
According to the SDCC manual, you don't use -l I've been using: sdcc -mgbz80 -Lmydir main.c mylib.lib and it does compile without problems, until I tried to add that extra file. I'll see about -l later today. Happy Hacking, David E. McMackins II Associate, Free Software Foundation (#12889) ww

Re: [Sdcc-user] Undefined reference error for function in static library

2016-03-28 Thread David McMackins
I did try today with -l instead of using mylib.lib as an input file, and the behavior is identical. Happy Hacking, David E. McMackins II Associate, Free Software Foundation (#12889) www.mcmackins.org www.delwink.com www.gnu.org www.fsf.org On 03/28/2016 02:15 AM, Maarten Brock wrote: > Hello D

Re: [Sdcc-user] Programmers - Hardware

2016-03-30 Thread David McMackins
Out of curiosity, how would one get their code from the PC to this external programmer if it is supposedly standalone? Happy Hacking, David E. McMackins II Associate, Free Software Foundation (#12889) www.mcmackins.org www.delwink.com www.gnu.org www.fsf.org On 03/30/2016 01:01 PM, Dave McGuir