say you have a file like this...
#define CASTING_IS_A_BEAR 200
#include <string.h>
#include <iostream.h>
class thing { public:
char name[32];
thing() { strcpy(name,"greg"); }
};
int main(void)
{ void *p;
thing g;
p=(void*)g;
/*
now how do I get to...
Nope. I'm not using STL - I'm trying to code a vector class from scratch. Borland 4.52
is pre-ANSI-standard, pre namespace even. Perhaps I am just a glutton for punishment, using this old version, but I'm a creature of habit.
I'll try to show this in a simplified form...
well, the undefined symbols are whatever functions are called in main().
The class has a constructor and a destructor, an insert() and remove() and a resize(), among others.
What ever function that is a memeber of vector<T> that is called from main() causes the link to fail.
I have used all...
I'm new to this site and I love it already!
Anyway - down to business -
I'm using 4.52, coding a vector class using templates
(template<class T> class vector)
I've got a header that contains only the declarations of the class and its functions
and a seperate file with the function definitions...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.