GCC compiling errors

From: van Niekerk, Ronelle, VF-NZ (Ronelle.VanNiekerk_at_vodafone.com)
Date: 05/18/05

  • Next message: Mindy Preston: "Re: GCC compiling errors"
    Date: Thu, 19 May 2005 08:37:17 +1200
    To: <redhat-list@redhat.com>
    
    

    I have a user trying to compile on a newly installed server but he's
    coming up with the following errors:

    gcc compiling on Linux...using -D_REENTRANT -Wno-deprecated -DGCC...when
    link, use -lstdc++
    $LNK is set to : -I/home/wangmi/appserv/include
    -L/home/wangmi/appserv/lib -lwyy -lstdc++ -lpthread
    /tmp/cctwtRiU.o(.text+0x3f): In function `main':
    /home/wangmi/myMail/myMail.C:26: undefined reference to `Util::Util()'
    /tmp/cctwtRiU.o(.text+0x51):/home/wangmi/myMail/myMail.C:27: undefined
    reference to `SendMail::SendMail()'
    /tmp/cctwtRiU.o(.text+0x2cc):/home/wangmi/myMail/myMail.C:67: undefined
    reference to `Util::getParam(char const*, char const*, char const*,
    char*, int)'
    /tmp/cctwtRiU.o(.text+0x2f4):/home/wangmi/myMail/myMail.C:68: undefined
    reference to `Util::getParam(char const*, char const*, char const*,
    int*)'
    /tmp/cctwtRiU.o(.text+0x33c):/home/wangmi/myMail/myMail.C:71: undefined
    reference to `SendMail::smtpPackUnixData_into_file(char const*, char
    const*, char const*, char const*, char const*, char const*, char const*,
    char const*)'
    /tmp/cctwtRiU.o(.text+0x375):/home/wangmi/myMail/myMail.C:72: undefined
    reference to `SendMail::smtpSendUnixMail(char const*, int, char const*,
    char const*, char const*, long)'
    /tmp/cctwtRiU.o(.text+0x3de):/home/wangmi/myMail/myMail.C:76: undefined
    reference to `SendMail::~SendMail()'
    /tmp/cctwtRiU.o(.text+0x3f0):/home/wangmi/myMail/myMail.C:76: undefined
    reference to `Util::~Util()'
    /tmp/cctwtRiU.o(.text+0x410):/home/wangmi/myMail/myMail.C:76: undefined
    reference to `SendMail::~SendMail()'
    /tmp/cctwtRiU.o(.text+0x436):/home/wangmi/myMail/myMail.C:76: undefined
    reference to `Util::~Util()'
    collect2: ld returned 1 exit status

    I don't know anything about gcc or c++ and can't solve the problem by
    installing more rpms.

    uname -a: Linux mcproxmte 2.4.21-9.ELsmp #1 SMP Thu Jan 8 17:08:56 EST
    2004 i686 i686 i386 GNU/Linux
    more /etc/redhat-release: Red Hat Enterprise Linux ES release 3 (Taroon
    Update 1)

    -----------------------------------------------------------------------------------------------
    Have you seen our website?.... http://www.vodafone.co.nz

    Manage Your Account, check your Vodafone Mail and send web2TXT online: http://www.vodafone.co.nz/myvodafone

    CAUTION: This correspondence is confidential and intended for the named recipient(s) only.
    If you are not the named recipient and receive this correspondence in error, you must not copy,
    distribute or take any action in reliance on it and you should delete it from your system and
    notify the sender immediately. Thank you.

    Unless otherwise stated, any views or opinions expressed are solely those of the author and do
    not represent those of Vodafone New Zealand Limited.

    Vodafone New Zealand Limited
    20 Viaduct Harbour Avenue, Private Bag 92161, Auckland 1030
    Telephone + 64 9 355 2000
    Facsimile + 64 9 355 2001

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Mindy Preston: "Re: GCC compiling errors"

    Relevant Pages

    • FW: GCC compiling errors
      ... reference to `Util::getParam(char const*, char const*, char const*, ... check your Vodafone Mail and send web2TXT online: ... If you are not the named recipient and receive this correspondence in error, you must not copy, ...
      (RedHat)
    • RE: GCC compiling errors
      ... reference to `Util::getParam(char const*, char const*, char const*, ... check your Vodafone Mail and send web2TXT online: ... If you are not the named recipient and receive this correspondence in error, you must not copy, ...
      (RedHat)
    • Re: safe alternative to va_arg
      ... error messages (I will probably make this a bit more general with some ... Passing 'int' by reference is overkill. ... print(char const* msg, A1 const& a1); ...
      (microsoft.public.vc.language)
    • GAlib and external code
      ... actually, it compiles my code, but cannot link to the required GAlib files. ... to `GAErr(GASourceLocator, char const*, char const*, GAErrorIndex, char const*, ...
      (comp.ai.genetic)