Hi,
I am having problems compiling a small project in VC++ 6. I have
included the error below and the full project (including workspace) can
be downloaded here:
http://www.freebreakfast.co.uk/Example1.zip
I am new to C++ (esp. using multiple files) and I am not sure I have
structured the files right (with the correct includes etc). Any other
suggestions about the code would be greatly appreciated.
Also, how do I implement threading in C++. I have used threading in Java
before and so am familiar with the way in which they operate. Any
tutorials on the matter would be great. (I'm preferably looking for a
platform-independent solution but a Win32 method of doing this would
also be great)
Sorry for all the questions...
Thanks in advance,
Connell
Error Message which "Rebuilding All":
-------------------------------------
Compiling...
HeadNode.cpp
InternalNode.cp p
LinkedList.cpp
main.cpp
Node.cpp
ship.cpp
TailNode.cpp
Linking...
main.obj : error LNK2001: unresolved external symbol "public: __thiscall
LinkedList<clas s Ship>::LinkedLi st<class Ship>(void)"
(??0?$LinkedLis t@VShip@@@@QAE@ XZ)
main.obj : error LNK2001: unresolved external symbol "public: class Ship
* __thiscall LinkedList<clas s Ship>::GetNextO bject(class Ship *)"
(?GetNextObject @?$LinkedList@V Ship@@@@QAEPAVS hip@@PAV2@@Z)
main.obj : error LNK2001: unresolved external symbol "public: class Ship
* __thiscall LinkedList<clas s Ship>::GetFirst Object(void)"
(?GetFirstObjec t@?$LinkedList@ VShip@@@@QAEPAV Ship@@XZ)
main.obj : error LNK2001: unresolved external symbol "public: void
__thiscall LinkedList<clas s Ship>::Insert(c lass Ship *)"
(?Insert@?$Link edList@VShip@@@ @QAEXPAVShip@@@ Z)
Debug/Example1.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
Example1.exe - 5 error(s), 0 warning(s)