Re: GCC compiling errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 19 May 2005 08:37:17 +1200, van Niekerk, Ronelle, VF-NZ wrote:

> 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.

The linking fails because the code is incomplete. Object files or
libraries, which define the referenced classes "Util" and "SendMail" are
missing. The individual error messages complain about missing
implementations of constructors, destructors, and specific member
functions which are used within myMail.C. One would need to see
what is defined in myMail.C and libwyy.
 
-- 
Fedora Core release 3 (Heidelberg) - Linux 2.6.11-1.14_FC3
loadavg: 1.00 1.05 0.82

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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux