This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hello, I think I'm just about the learning curve, but still can't link a simple (hello world) program. My host is Redhat 7.1, my target is a MC68332 board running CPU32BUG. I believe I have the following installed correctly: binutils-2.9.1, gcc-2.95.1, and newlib-1.8.2. Compiling works fine with the following command: m68k-coff-gcc -m68332 -mshort -c hello.c However when I attempt to link with this command: m68k-coff-gcc -v -Wl,-Tbcc.ld hello.o -lc -lbcc I get: Reading specs from /usr/local/lib/gcc-lib/m68k-coff/2.95.1/specs gcc version 2.95.1 19990816 (release) /usr/local/lib/gcc-lib/m68k-coff/2.95.1/collect2 /usr/local/m68k-coff/lib/crt0.o -L/usr/local/lib/gcc-lib/m68k-coff/2.95.1 -L/usr/local/m68k-coff/lib -Tbcc.ld hello.o -lc -lbcc -lgcc -lgcc /usr/local/m68k-coff/lib/crt0.o:../../../../newlib-1.8.2/libgloss/m68k/crt0.S:16: multiple definition of `start' /usr/local/m68k-coff/lib/crt0.o:../../../../newlib-1.8.2/libgloss/m68k/crt0.S:16: first defined here /usr/local/m68k-coff/lib/libbcc.a(lseek.o): In function `lseek': /crossgcc/build-newlib/m68k-coff/libgloss/m68k/../../../../newlib-1.8.2/libgloss/m68k/../lseek.c:28: undefined reference to `__errno' collect2: ld returned 1 exit status What am I missing? Thanks in Advance, Larry Gray larry@greenmotor.com ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |