Problems with GCC

From: Andro Galinovic read backwards (kcaheht_at_fly.srk.fer.hr)
Date: 11/08/03

  • Next message: PHP2: "Re: ISDN modem ?"
    Date: Sat, 08 Nov 2003 17:59:30 +0100
    
    

    Hi,

    Whenever I try to compile any C program this error occurred, it doesn't matter
    if it's with gcc or g++:


    /usr/lib/libc_nonshared.a(elf-init.oS): In function
    `__libc_csu_init':
    elf-init.oS(.text+0xb): undefined reference to
    `__init_array_end'
    elf-init.oS(.text+0x10): undefined reference to
    `__init_array_start'
    elf-init.oS(.text+0x23): undefined reference to
    `__init_array_start'
    /usr/lib/libc_nonshared.a(elf-init.oS): In function
    `__libc_csu_fini':
    elf-init.oS(.text+0x36): undefined reference to
    `__fini_array_end'
    elf-init.oS(.text+0x3b): undefined reference to
    `__fini_array_start'
    elf-init.oS(.text+0x57): undefined reference to
    `__fini_array_start'
    collect2: ld returned 1 exit status

    Everything worked fine before I updated RedHat7.2 to RedHat9.0

    Please help,

    --
                                                            Andro



  • Next message: PHP2: "Re: ISDN modem ?"

    Relevant Pages

    • Possible GCC problem
      ... This isn't exactly strictly Red Hat related, but since I get all my GCC ... I commented the array statement out and tried to compile it. ... Here is my program code for ... : undefined reference to `std::basic_ostream<char, ...
      (RedHat)
    • Re: Compiling flops.c
      ... I am trying to compile flops.c on my Debian system. ... flops.c:: undefined reference to `dtime' ... I also tried compiling it on a Solaris system with gcc 3.4 and had no ...
      (Debian-User)
    • Compiling flops.c
      ... I am trying to compile flops.c on my Debian system. ... flops.c:: undefined reference to `dtime' ... I also tried compiling it on a Solaris system with gcc 3.4 and had no luck. ...
      (Debian-User)
    • Undefined reference error
      ... Trying to compile a program using GCC and written in C. ... "sqrt" function and I keep getting an "undefined reference" error even ...
      (alt.os.linux.suse)
    • question about static variables
      ... I have this following class, but when I compile it, gcc shows a error ... message "undefined reference to `Animal::theNumberOfAnimals`". ... static int theNumberOfAnimals; ...
      (comp.lang.cpp)