Christian Reimer
asked on
Borland Classlib with TCWin45
I have problems using the Borland Classlib. The classlib files
are in the direcotry "c:\tcwin45\include\classl ib\obsolet e".
I am using Borland Turbo C++ V4.5 unde win95. I am trying to
compile an EasyWin program.
-------------------------- ---------- --------
I if enter a simple! code like this:
#include "c:\tcwin45\include\classl ib\obsolet e\SortArry .h"
int main()
{
SortedArray a(3);
return 0;
}
I get a sea of linker errors (20+) and just as many linker
warnings. This happens when ever I try to use the Classlib.
I have tried several exampels from the actual classlib and
none work. EI:
#include "c:\tcwin45\include\classl ib\obsolet e\strng.h"
#include "c:\tcwin45\include\classl ib\obsolet e\array.h"
int main()
{
Array a(2);
String *s1 = new String("a string");
String *s2 = new String("another string");
a.add(*s1);
a.add(*s2);
return 0;
}
When I compile that code, I get the following error messages:
Compiling TST_STR.CPP:
Linking tst_str.exe:
Linker Warning: No module definition file specified: using defaults
Linker Warning: Possible reference to undefined extern Object::ZERO in module TST_STR.CPP
Linker Error: Undefined symbol AbstractArray::~AbstractAr ray() in module TST_STR.CPP
Linker Error: Undefined symbol Array::add(Object far&) in module TST_STR.CPP
Linker Error: Undefined symbol AbstractArray::AbstractArr ay(int,int ,unsigned int) in module TST_STR.CPP
Linker Error: Undefined symbol Object::ZERO in module TST_STR.CPP
Linker Error: Undefined symbol AbstractArray::printConten tsOn(ostre am far&) const in module TST_STR.CPP
Linker Error: Undefined symbol AbstractArray::detach(int, Object::TS houldDelet e::DeleteT ype) in module TST_STR.CPP
Linker Error: Undefined symbol Collection::findMember(Obj ect far&) const in module TST_STR.CPP
Linker Error: Undefined symbol AbstractArray::detach(Obje ct far&,Object::TShouldDelete ::DeleteTy pe) in module TST_STR.CPP
Linker Error: Undefined symbol AbstractArray::initIterato r() const in module TST_STR.CPP
Linker Error: Undefined symbol Container::printTrailer(os tream far&) const in module TST_STR.CPP
Linker Error: Undefined symbol Container::printSeparator( ostream far&) const in module TST_STR.CPP
Linker Error: Undefined symbol Container::printHeader(ost ream far&) const in module TST_STR.CPP
Linker Error: Undefined symbol AbstractArray::flush(Objec t::TShould Delete::De leteType) in module TST_STR.CPP
Linker Error: Undefined symbol Container::printOn(ostream far&) const in module TST_STR.CPP
Linker Error: Undefined symbol Container::lastThat(int(fa r*)(const Object far&,void far*),void far*) const in module TST_STR.CPP
Linker Error: Undefined symbol Container::firstThat(int(f ar*)(const Object far&,void far*),void far*) const in module TST_STR.CPP
Linker Error: Undefined symbol Container::forEach(void(fa r*)(Object far&,void far*),void far*) in module TST_STR.CPP
Linker Error: Undefined symbol AbstractArray::isEqual(con st Object far&) const in module TST_STR.CPP
Linker Error: Undefined symbol Container::hashValue() const in module TST_STR.CPP
What is wrong?
-= Christian
are in the direcotry "c:\tcwin45\include\classl
I am using Borland Turbo C++ V4.5 unde win95. I am trying to
compile an EasyWin program.
--------------------------
I if enter a simple! code like this:
#include "c:\tcwin45\include\classl
int main()
{
SortedArray a(3);
return 0;
}
I get a sea of linker errors (20+) and just as many linker
warnings. This happens when ever I try to use the Classlib.
I have tried several exampels from the actual classlib and
none work. EI:
#include "c:\tcwin45\include\classl
#include "c:\tcwin45\include\classl
int main()
{
Array a(2);
String *s1 = new String("a string");
String *s2 = new String("another string");
a.add(*s1);
a.add(*s2);
return 0;
}
When I compile that code, I get the following error messages:
Compiling TST_STR.CPP:
Linking tst_str.exe:
Linker Warning: No module definition file specified: using defaults
Linker Warning: Possible reference to undefined extern Object::ZERO in module TST_STR.CPP
Linker Error: Undefined symbol AbstractArray::~AbstractAr
Linker Error: Undefined symbol Array::add(Object far&) in module TST_STR.CPP
Linker Error: Undefined symbol AbstractArray::AbstractArr
Linker Error: Undefined symbol Object::ZERO in module TST_STR.CPP
Linker Error: Undefined symbol AbstractArray::printConten
Linker Error: Undefined symbol AbstractArray::detach(int,
Linker Error: Undefined symbol Collection::findMember(Obj
Linker Error: Undefined symbol AbstractArray::detach(Obje
Linker Error: Undefined symbol AbstractArray::initIterato
Linker Error: Undefined symbol Container::printTrailer(os
Linker Error: Undefined symbol Container::printSeparator(
Linker Error: Undefined symbol Container::printHeader(ost
Linker Error: Undefined symbol AbstractArray::flush(Objec
Linker Error: Undefined symbol Container::printOn(ostream
Linker Error: Undefined symbol Container::lastThat(int(fa
Linker Error: Undefined symbol Container::firstThat(int(f
Linker Error: Undefined symbol Container::forEach(void(fa
Linker Error: Undefined symbol AbstractArray::isEqual(con
Linker Error: Undefined symbol Container::hashValue() const in module TST_STR.CPP
What is wrong?
-= Christian
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.