RE: GCC compiling errors

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

 



More info:

He is running the following:
gcc myMail.C -o myMail -g -D_REENTRANT -Wno-deprecated -DGCC
-I$HOME/appserv/include -L$HOME/appserv/lib -lwyy -lstdc++ -lpthread

I've tried putting the library and include options first, before the -o,
but that doesn't help either.

I really have no idea what I'm doing here and even the more knowledgable
Linux people around me can't help.

-Ronelle


-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of van Niekerk,
Ronelle, VF-NZ
Sent: Thursday, 19 May 2005 8:37 a.m.
To: redhat-list@xxxxxxxxxx
Subject: GCC compiling errors


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@xxxxxxxxxx?subject=subscribe
https://www.redhat.com/mailman/listinfo/redhat-list
-----------------------------------------------------------------------------------------------
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@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