Project in multiple directories

Hex hex at kiwwi.hu
Sun May 20 11:45:27 BST 2001


Hex <hex at kiwwi.hu> wrote on 5/19/2001 12:35:31 PM:
>
>Hi,
>
>I have a project which resides in more than one directory.
>The compiling was successful, but the linker gives many undefined references (see below).
>How can I solve this problem ?
> (KDevelop, RedHat 7.1)
>
>	Hex
>
>/bin/sh ../libtool --mode=link g++  -O0 -g3 -Wall   -DSUMIHIRO -D_REENTRANT -DLINUX -DUNIX_SYSTEM -DSM_SEL_UNIX -DSM_THREAD_UNIX -D_THREAD_SAFE  -static  -o vasic   VasicApp.o 
>Global.o main.o ./FileLib/libFileLib.a ./Interpreter/libInterpreter.a ./Miscellanous/libMiscellanous.a ./Telephony/libTelephony.a ./Telephony/Aculab/libAculab.a -lpthread
>
>mkdir .libs
>
>g++ -O0 -g3 -Wall -DSUMIHIRO -D_REENTRANT -DLINUX -DUNIX_SYSTEM -DSM_SEL_UNIX -DSM_THREAD_UNIX -D_THREAD_SAFE -o vasic VasicApp.o Global.o main.o  ./FileLib/libFileLib.a 
>./Interpreter/libInterpreter.a ./Miscellanous/libMiscellanous.a ./Telephony/libTelephony.a ./Telephony/Aculab/libAculab.a -lpthread
>
>./Telephony/libTelephony.a(Channel.o): In function `CVasicChannelList::GetNumberOfChannels(void)':
>
>/root/Projects/Vasic/vasic/Telephony/Channel.h(.text+0x48): undefined reference to `CDTMFBuffer::CDTMFBuffer(void)'
>
>/root/Projects/Vasic/vasic/Telephony/Channel.h(.text+0x1df): undefined reference to `CDTMFBuffer::~CDTMFBuffer(void)'
>
>./Telephony/libTelephony.a(Channel.o): In function `CVasicChannel::~CVasicChannel(void)':
>
>/root/Projects/Vasic/vasic/Telephony/Channel.cpp:72: undefined reference to `CDTMFBuffer::~CDTMFBuffer(void)'
>
>./Telephony/libTelephony.a(Channel.o): In function `CVasicChannel::GetDTMF(char &, int, bool)':
>
>/root/Projects/Vasic/vasic/Telephony/Channel.cpp:361: undefined reference to `CDTMFBuffer::GetDTMF(void)'
>
>./Telephony/libTelephony.a(CTBus.o): In function `FreeBusTimeslot(int, TIMESLOT_PARAMS *)':
>
>/root/Projects/Vasic/vasic/Telephony/CTApplication.h(.gnu.linkonce.t.AllocateBusTimeslot(int, TIMESLOT_PARAMS *)+0x59): undefined reference to `CSimplePtrList::RemoveHead(void)'
>
>/root/Projects/Vasic/vasic/Telephony/CTApplication.h(.gnu.linkonce.t.AllocateBusTimeslot(int, TIMESLOT_PARAMS *)+0xb9): undefined reference to `CSimplePtrList::RemoveHead(void)'
>
>/root/Projects/Vasic/vasic/Telephony/CTApplication.h(.gnu.linkonce.t.FreeBusTimeslot(int, TIMESLOT_PARAMS *)+0x8c): undefined reference to `CSimplePtrList::AddHead(void *)'
>
>/root/Projects/Vasic/vasic/Telephony/CTApplication.h(.gnu.linkonce.t.FreeBusTimeslot(int, TIMESLOT_PARAMS *)+0xf0): undefined reference to `CSimplePtrList::AddHead(void *)'
>
>./Telephony/libTelephony.a(CTApplication.o): In function `CCTApplication type_info function':
>
>/root/Projects/Vasic/vasic/Telephony/CTApplication.cpp(.text+0x2c6): undefined reference to `CVarBase::CVarBase(int)'
>
>/root/Projects/Vasic/vasic/Telephony/CTApplication.cpp(.text+0x348): undefined reference to `CSimplePtrList::AddTail(void *)'
>
>/root/Projects/Vasic/vasic/Telephony/CTApplication.cpp(.text+0x3bb): undefined reference to `CSimplePtrList::AddTail(void *)'
>
>./Telephony/libTelephony.a(CTApplication.o): In function `CCTApplication::~CCTApplication(void)':
>
>/root/Projects/Vasic/vasic/Telephony/CTApplication.cpp:120: undefined reference to `CVarBase::~CVarBase(void)'
>
>./Telephony/libTelephony.a(CTApplication.o): In function `__static_initialization_and_destruction_0':
>
>/root/Projects/Vasic/vasic/Telephony/CTApplication.cpp:25: undefined reference to `CSimplePtrList::CSimplePtrList(void)'
>
>/root/Projects/Vasic/vasic/Telephony/CTApplication.cpp:26: undefined reference to `CSimplePtrList::CSimplePtrList(void)'
>
>/root/Projects/Vasic/vasic/Telephony/CTApplication.cpp:26: undefined reference to `CSimplePtrList::~CSimplePtrList(void)'
>
>/root/Projects/Vasic/vasic/Telephony/CTApplication.cpp:25: undefined reference to `CSimplePtrList::~CSimplePtrList(void)'
>
>./Telephony/libTelephony.a(DSPChannel.o): In function `CDSPChannel::ThExit(void)':
>
>/root/Projects/Vasic/vasic/Telephony/DSPChannel.h(.text+0x58): undefined reference to `CDTMFBuffer::CDTMFBuffer(void)'
>
>./Telephony/libTelephony.a(DSPChannel.o): In function `CDSPChannel::~CDSPChannel(void)':
>
>/root/Projects/Vasic/vasic/Telephony/DSPChannel.cpp:55: undefined reference to `CDTMFBuffer::~CDTMFBuffer(void)'
>
>./Telephony/libTelephony.a(VasicService.o): In function `CVasicService::~CVasicService(void)':
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:73: undefined reference to `CFileIO::~CFileIO(void)'
>
>./Telephony/libTelephony.a(VasicService.o): In function `CVasicService::GetDTMF(int, bool)':
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:204: undefined reference to `CDTMFBuffer::GetDTMF(void)'
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:210: undefined reference to `CDTMFBuffer::GetDTMF(void)'
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:211: undefined reference to `CDTMFBuffer::GetLength(void)'
>
>./Telephony/libTelephony.a(VasicService.o): In function `CVasicService::ExeFv(int)':
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:719: undefined reference to `CCode::ExeFv(int)'
>
>./Telephony/libTelephony.a(VasicService.o): In function `CVasicService::ThInit(void)':
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:831: undefined reference to `CDTMFBuffer::ClearBuffer(void)'
>
>./Telephony/libTelephony.a(VasicService.o): In function `CVasicService::ThMain(void)':
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:870: undefined reference to `CFileIO::CFileIO(void)'
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:895: undefined reference to `CCode::Init(char *, CVasicService *, int)'
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:947: undefined reference to `CCode::Init(char *, CVasicService *, int)'
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:954: undefined reference to `CCode::Init(char *, CVasicService *, int)'
>
>./Telephony/libTelephony.a(VasicService.o): In function `CVasicService::ThExit(void)':
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:1024: undefined reference to `CFileIO::~CFileIO(void)'
>
>./Telephony/libTelephony.a(VasicService.o): In function `CVasicService::IsFileExists(char const *)':
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:1088: undefined reference to `IsFileExists(char const *)'
>
>./Telephony/libTelephony.a(VasicService.o): In function `CVasicService::SeekFile(int, int)':
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:1093: undefined reference to `CFileIO::SeekFile(int, int)'
>
>./Telephony/libTelephony.a(VasicService.o): In function `CVasicService::ReadFile(char *, int)':
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:1098: undefined reference to `CFileIO::ReadFile(char *, int)'
>
>./Telephony/libTelephony.a(VasicService.o): In function `CVasicService::WriteFile(char const *, int)':
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:1103: undefined reference to `CFileIO::WriteFile(char *, int)'
>
>./Telephony/libTelephony.a(VasicService.o): In function `CVasicService::OpenFile(char const *, int)':
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:1108: undefined reference to `CFileIO::OpenFile(char *, int)'
>
>./Telephony/libTelephony.a(VasicService.o): In function `CVasicService::CloseFile(void)':
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:1113: undefined reference to `CFileIO::CloseFile(void)'
>
>./Telephony/libTelephony.a(VasicService.o): In function `CVasicService::DeleteFile(char const *)':
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:1118: undefined reference to `DeleteFile(char const *)'
>
>./Telephony/libTelephony.a(VasicService.o): In function `CVasicService::MoveFile(char const *, char const *)':
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp:1123: undefined reference to `RenameFile(char const *, char const *)'
>
>./Telephony/libTelephony.a(VasicService.o): In function `CCode type_info function':
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp(.CCode::gnu.linkonce.t.(void)+0x32): undefined reference to `CFileFind::CFileFind(void)'
>
>/root/Projects/Vasic/vasic/Telephony/VasicService.cpp(.gnu.linkonce.t._._5CCode+0x43): undefined reference to `CFileFind::~CFileFind(void)'
>
>./Telephony/libTelephony.a(Service.o): In function `CService::ThExit(void)':
>
>/root/Projects/Vasic/vasic/Telephony/Service.h(.text+0x35): undefined reference to `CDTMFBuffer::CDTMFBuffer(void)'
>
>/root/Projects/Vasic/vasic/Telephony/Service.h(.text+0xab): undefined reference to `CDTMFBuffer::~CDTMFBuffer(void)'
>
>./Telephony/libTelephony.a(Service.o): In function `CService::~CService(void)':
>
>/root/Projects/Vasic/vasic/Telephony/Service.cpp:35: undefined reference to `CDTMFBuffer::~CDTMFBuffer(void)'
>
>./Telephony/libTelephony.a(Service.o): In function `CService::OnDTMF(char)':
>
>/root/Projects/Vasic/vasic/Telephony/Service.cpp:40: undefined reference to `CDTMFBuffer::SetDTMF(char)'
>
>./Telephony/libTelephony.a(ProsodyDSPChannel.o): In function `CProsodyDSPChannel::GetDTMF(char &, int, bool)':
>
>/root/Projects/Vasic/vasic/Telephony/ProsodyDSPChannel.cpp:1297: undefined reference to `CDTMFBuffer::GetDTMF(void)'
>
>/root/Projects/Vasic/vasic/Telephony/ProsodyDSPChannel.cpp:1301: undefined reference to `CDTMFBuffer::GetDTMF(void)'
>
>./Telephony/libTelephony.a(ProsodyDSPChannel.o): In function `CProsodyDSPChannel::ThMain(void)':
>
>/root/Projects/Vasic/vasic/Telephony/ProsodyDSPChannel.cpp:1583: undefined reference to `CDTMFBuffer::SetDTMF(char)'
>
>collect2: ld returned 1 exit status
>
>gmake[1]: Leaving directory `/root/Projects/Vasic/vasic'
>
>gmake[1]: *** [vasic] Error 1
>
>gmake: *** [all-recursive] Error 1
>
>*** failed ***



-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list