I'm hacking on my makefiles to make my avr stuff work like my arm stuff (.h's, .c's and .a's splattered all over my disks)...
Anyway, I've figured out my problem - set the library search path, so I could find my libs, but now avr-gcc can't find the libs for the m128. How do I go about merging those two concepts? Is some combination of lower and uppercase -L's the issue, or am I way off base? Is the m128 really an avr2 architecture? It is pretty old... Thanks, Steve >gmake -------- begin -------- avr-gcc (GCC) 4.3.2 Copyright (C) 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiling C++: /home/steve/projects/include/uart/CmdSystem.cpp /usr/local/bin/avr-g++ -c -I. -MD -MP -MF .dep/CmdSystem.o.d -g -std=c99 -Wall -Os -mmcu=atmega128 -DF_CPU=8000000UL -I./../include/ -I/home/steve/projects/include -I/usr/local/avr/include -MD -MP -MF .dep/CmdSystem.o.d /home/steve/projects/include/uart/CmdSystem.cpp -o /home/steve/projects/include/uart/CmdSystem.o cc1plus: warning: command line option "-std=c99" is valid for C/ObjC but not for C++ Compiling C++: CmdHandlers.cpp /usr/local/bin/avr-g++ -c -I. -MD -MP -MF .dep/CmdHandlers.o.d -g -std=c99 -Wall -Os -mmcu=atmega128 -DF_CPU=8000000UL -I./../include/ -I/home/steve/projects/include -I/usr/local/avr/include -MD -MP -MF .dep/CmdHandlers.o.d CmdHandlers.cpp -o CmdHandlers.o cc1plus: warning: command line option "-std=c99" is valid for C/ObjC but not for C++ Compiling C++: main.cpp /usr/local/bin/avr-g++ -c -I. -MD -MP -MF .dep/main.o.d -g -std=c99 -Wall -Os -mmcu=atmega128 -DF_CPU=8000000UL -I./../include/ -I/home/steve/projects/include -I/usr/local/avr/include -MD -MP -MF .dep/main.o.d main.cpp -o main.o cc1plus: warning: command line option "-std=c99" is valid for C/ObjC but not for C++ Linking: main.elf /usr/local/bin/avr-g++ -I. -MD -MP -MF .dep/main.elf.d -g -std=c99 -Wall -Os -mmcu=atmega128 -DF_CPU=8000000UL -I./../include/ -I/home/steve/projects/include -I/usr/local/avr/include -MD -MP -MF .dep/main.elf.d /home/steve/projects/include/uart/CmdSystem.o CmdHandlers.o main.o --output main.elf -Wl,-Map=.map,-u,vfprintf,-lprintf_flt,-u,asin,-lm,-lgcc,-L/usr/local/avr/lib -L./../lib/ -L/home/steve/projects/include -L/home/steve/projects/include/avr -L/usr/local/avr/lib main.o: In function `main': /usr/home/steve/projects/clients/zonge/Zeus/ZigHub/Main/main.cpp:77: undefined reference to `__eerd_byte_m128' /usr/local/avr/lib/libprintf_flt.a(vfprintf_flt.o): In function `vfprintf': /work/a/ports/devel/avr-libc/work/avr-libc-1.6.8/avr/lib/avr2/../../../libc/stdio/vfprintf.c:338: undefined reference to `__mulhi3' /work/a/ports/devel/avr-libc/work/avr-libc-1.6.8/avr/lib/avr2/../../../libc/stdio/vfprintf.c:341: undefined reference to `__mulhi3' /usr/local/avr/lib/libc.a(calloc.o): In function `calloc': /work/a/ports/devel/avr-libc/work/avr-libc-1.6.8/avr/lib/avr2/../../../libc/stdlib/calloc.c:43: undefined reference to `__mulhi3' gmake: *** [main.elf] Error 1 >Exit code: 2 _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev