Here is the error:
Expand|Select|Wrap|Line Numbers
- main.obj : error LNK2019: unresolved external symbol "public: void __thiscall Stat::openFile(char *)" (?openFile@Stat@@QAEXPAD@Z) referenced in function _main
This is using Visual Studio .NET 2005.
Here is main:
Expand|Select|Wrap|Line Numbers
- #include "Stat.h"
- int main(int argc, char* argv[])
- {
- Stat* stat = new Stat();
- stat->openFile(argv[1]);
- return 0;
- }
Expand|Select|Wrap|Line Numbers
- #ifndef STAT_H
- #define STAT_H
- #include "IndexedLinkList.h"
- class Stat
- {
- public:
- Stat();
- ~Stat();
- void openFile(char*);
- private:
- IndexedLinkList* list;
- };
- #endif
Thank you