Hi all, I'm newbie with uClinux, i'm trying to compile a sample c++ project with m68k-elf-tools and i'm having some problems linking, could someone have a look and help me please?. Thanks.
I have 3 files (Test.h, Test.cc, main.cc) and i'm using an example makefile, the output i get is as follows: [EMAIL PROTECTED] make m68k-elf-g++ -m5307 -DCONFIG_COLDFIRE -Os -g -fomit-frame-pointer - Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/root/UCLINUX/uClinux- netbiter/lib/uClibc/include -I/root/UCLINUX/uClinux-netbiter/lib/libm - I/root/UCLINUX/uClinux-netbiter -fno-builtin -I/root/UCLINUX/uClinux- netbiter/linux-2.4.x/include -I. -Wall -c -o main.o main.cc m68k-elf-g++ -m5307 -DCONFIG_COLDFIRE -Os -g -fomit-frame-pointer - Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/root/UCLINUX/uClinux- netbiter/lib/uClibc/include -I/root/UCLINUX/uClinux-netbiter/lib/libm - I/root/UCLINUX/uClinux-netbiter -fno-builtin -I/root/UCLINUX/uClinux- netbiter/linux-2.4.x/include -I. -Wall -c -o Test.o Test.cc m68k-elf-gcc -m5307 -DCONFIG_COLDFIRE -Os -g -fomit-frame-pointer - Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/root/UCLINUX/uClinux- netbiter/lib/uClibc/include -I/root/UCLINUX/uClinux-netbiter/lib/libm - I/root/UCLINUX/uClinux-netbiter -fno-builtin -I/root/UCLINUX/uClinux- netbiter/linux-2.4.x/include -I. -Wall -Wl,-elf2flt -o pp main.o Test.o -L/root/UCLINUX/uClinux-netbiter/lib/uClibc/. -L/root/UCLINUX/uClinux- netbiter/lib/uClibc/lib -L/root/UCLINUX/uClinux-netbiter/lib/libm - L/root/UCLINUX/uClinux-netbiter/lib/libnet -L/root/UCLINUX/uClinux- netbiter/lib/libdes -L/root/UCLINUX/uClinux-netbiter/lib/libpcap - L/root/UCLINUX/uClinux-netbiter/lib/zlib -L/root/UCLINUX/uClinux- netbiter/lib/libssl -lc pp.elf2flt: In function `__default_terminate': /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/libgcc2.c(.text+0x2276): undefined reference to `abort' pp.elf2flt: In function `__throw_type_match': /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/libgcc2.c(.text+0x22a0): undefined reference to `strcmp' pp.elf2flt: In function `new_eh_context': /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/libgcc2.c(.text+0x22ca): undefined reference to `malloc' pp.elf2flt: In function `get_reg_addr': /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/libgcc2.c(.text+0x26b4): undefined reference to `abort' pp.elf2flt: In function `__eh_alloc': /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/cp/exception.cc:152: undefined reference to `malloc' pp.elf2flt: In function `__eh_free': /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/cp/exception.cc:165: undefined reference to `free' pp.elf2flt: In function `end_fde_sort': /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/frame.c(.text+0x30be): undefined reference to `abort' /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/frame.c(.text+0x30e4): undefined reference to `abort' /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/frame.c(.text+0x3208): undefined reference to `free' pp.elf2flt: In function `frame_init': /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/frame.c(.text+0x330e): undefined reference to `malloc' /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/frame.c(.text+0x331a): undefined reference to `malloc' pp.elf2flt: In function `extract_cie_info': /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/frame.c(.text+0x3436): undefined reference to `strcmp' pp.elf2flt: In function `execute_cfa_insn': /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/frame.c:627: undefined reference to `malloc' /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/frame.c:627: undefined reference to `free' /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/frame.c:627: undefined reference to `abort' pp.elf2flt: In function `__register_frame': /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/frame.c(.text+0x3862): undefined reference to `malloc' pp.elf2flt: In function `__register_frame_table': /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/frame.c(.text+0x38b8): undefined reference to `malloc' pp.elf2flt: In function `__deregister_frame_info': /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/frame.c(.text+0x38f6): undefined reference to `free' /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/frame.c(.text+0x3908): undefined reference to `abort' pp.elf2flt: In function `__deregister_frame': /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/frame.c(.text+0x3924): undefined reference to `free' pp.elf2flt: In function `__builtin_delete': /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/cp/new2.cc:54: undefined reference to `free' pp.elf2flt: In function `type_info::operator==(type_info const &) const': /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/cp/tinfo.cc:46: undefined reference to `strcmp' pp.elf2flt: In function `type_info::before(type_info const &) const': /home/davidm/work/uclinux-elf-tools/m68k-elf- gcc/gcc/../../gcc-2.95.3/gcc/cp/tinfo2.cc:37: undefined reference to `strcmp' collect2: ld returned 1 exit status make: *** [pp] Error 1 -- José M. Puyal [EMAIL PROTECTED] Tel.- (+34) 976302524 Dialcom Networks S.L. www.dialcom.com CONFIDENCIALIDAD. Tanto este mensaje como todos los posibles documentos adjuntos al mismo son confidenciales y dirigidos exclusivamente a los destinatarios de los mismos. Por favor, si Vd. no es uno de dichos destinatarios, sírvase notificarnos este hecho y no copie o revele su contenido a terceros. CONFIDENTIALITY. This message and any attached files are confidential and intended only for the named recipients. If you are not one of them, please, notify us this fact and do not disclose its contents to another person or take any copies. _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
