hello,
please guide me for the following errors....
why i am getting these....
how to overcome these errors...
[root@localhost DATASERVER]# g++ -o p1 -L/usr/lib -lpthread main.cpp DataServerPort.o DataServerLog.o
In file included from /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/backward/iostream.h:31,
from main.cpp:3:
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
In file included from main.cpp:6:
DataServerPort.h:67:7: warning: no newline at end of file
In file included from main.cpp:8:
DataServerLog.h:31:2: warning: no newline at end of file
/tmp/ccJSnhQz.o: In function `__static_initialization_and_destruction_0(int, int)':
main.cpp:(.text+0x5b): undefined reference to `QString::QString(char const*)'
/tmp/ccJSnhQz.o: In function `main':
main.cpp:(.text+0x121): undefined reference to `QString::QString(char const*)'
/tmp/ccJSnhQz.o: In function `QString::~QString()':
main.cpp:(.gnu.linkonce.t._ZN7QStringD1Ev+0x1d): undefined reference to `QString::shared_null'
main.cpp:(.gnu.linkonce.t._ZN7QStringD1Ev+0x2e): undefined reference to `QStringData::deleteSelf()'
DataServerPort.o: In function `DataServerPort::initializeDataServerPort(QString& )':
DataServerPort.cpp:(.text+0x43e): undefined reference to `QString::QString(char const*)'
DataServerPort.cpp:(.text+0x450): undefined reference to `QString::stripWhiteSpace() const'
DataServerPort.cpp:(.text+0x465): undefined reference to `QString::operator=(QString const&)'
DataServerPort.cpp:(.text+0x4b9): undefined reference to `QString::operator=(QString const&)'
DataServerPort.o: In function `QString::operator char const*() const':
DataServerPort.cpp:(.gnu.linkonce.t._ZNK7QStringcv PKcEv+0xd): undefined reference to `QString::ascii() const'
DataServerPort.o: In function `operator+(QString const&, QString const&)':
DataServerPort.cpp:(.gnu.linkonce.t._ZplRK7QString S1_+0x15): undefined reference to `QString::QString(QString const&)'
DataServerPort.cpp:(.gnu.linkonce.t._ZplRK7QString S1_+0x27): undefined reference to `QString::operator+=(QString const&)'
DataServerLog.o: In function `DataServerLog::clearDataLogFile()':
DataServerLog.cpp:(.text+0x88): undefined reference to `QString::QString(char const*)'
DataServerLog.cpp:(.text+0x9a): undefined reference to `QString::operator+=(QString const&)'
DataServerLog.cpp:(.text+0xa5): undefined reference to `QString::ascii() const'
DataServerLog.o: In function `DataServerLog::writeTimeStamp()':
DataServerLog.cpp:(.text+0x1a8): undefined reference to `QString::ascii() const'
DataServerLog.o: In function `DataServerLog::writeDataLog(QString)':
DataServerLog.cpp:(.text+0x26f): undefined reference to `QString::ascii() const'
DataServerLog.cpp:(.text+0x292): undefined reference to `QString::ascii() const'
DataServerLog.o: In function `DataServerLog::writeDataLog(char*, int)':
DataServerLog.cpp:(.text+0x2e7): undefined reference to `QString::ascii() const'
DataServerLog.o:DataServerLog.cpp:(.text+0x35d): more undefined references to `QString::ascii() const' follow
DataServerLog.o: In function `DataServerLog::DataServerLog(QString)':
DataServerLog.cpp:(.text+0x3ca): undefined reference to `QString::operator=(QString const&)'
DataServerLog.o: In function `DataServerLog::DataServerLog(QString)':
DataServerLog.cpp:(.text+0x416): undefined reference to `QString::operator=(QString const&)'
DataServerLog.o: In function `QString::QString()':
DataServerLog.cpp:(.gnu.linkonce.t._ZN7QStringC1Ev +0x7): undefined reference to `QString::shared_null'
DataServerLog.cpp:(.gnu.linkonce.t._ZN7QStringC1Ev +0x10): undefined reference to `QString::makeSharedNull()'
DataServerLog.cpp:(.gnu.linkonce.t._ZN7QStringC1Ev +0x1a): undefined reference to `QString::shared_null'
collect2: ld returned 1 exit status
Bookmarks