C
Connell Gauld
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.cpp
LinkedList.cpp
main.cpp
Node.cpp
ship.cpp
TailNode.cpp
Linking...
main.obj : error LNK2001: unresolved external symbol "public: __thiscall
LinkedList<class Ship>::LinkedList<class Ship>(void)"
(??0?$LinkedList@VShip@@@@QAE@XZ)
main.obj : error LNK2001: unresolved external symbol "public: class Ship
* __thiscall LinkedList<class Ship>::GetNextObject(class Ship *)"
(?GetNextObject@?$LinkedList@VShip@@@@QAEPAVShip@@PAV2@@Z)
main.obj : error LNK2001: unresolved external symbol "public: class Ship
* __thiscall LinkedList<class Ship>::GetFirstObject(void)"
(?GetFirstObject@?$LinkedList@VShip@@@@QAEPAVShip@@XZ)
main.obj : error LNK2001: unresolved external symbol "public: void
__thiscall LinkedList<class Ship>::Insert(class Ship *)"
(?Insert@?$LinkedList@VShip@@@@QAEXPAVShip@@@Z)
Debug/Example1.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
Example1.exe - 5 error(s), 0 warning(s)
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.cpp
LinkedList.cpp
main.cpp
Node.cpp
ship.cpp
TailNode.cpp
Linking...
main.obj : error LNK2001: unresolved external symbol "public: __thiscall
LinkedList<class Ship>::LinkedList<class Ship>(void)"
(??0?$LinkedList@VShip@@@@QAE@XZ)
main.obj : error LNK2001: unresolved external symbol "public: class Ship
* __thiscall LinkedList<class Ship>::GetNextObject(class Ship *)"
(?GetNextObject@?$LinkedList@VShip@@@@QAEPAVShip@@PAV2@@Z)
main.obj : error LNK2001: unresolved external symbol "public: class Ship
* __thiscall LinkedList<class Ship>::GetFirstObject(void)"
(?GetFirstObject@?$LinkedList@VShip@@@@QAEPAVShip@@XZ)
main.obj : error LNK2001: unresolved external symbol "public: void
__thiscall LinkedList<class Ship>::Insert(class Ship *)"
(?Insert@?$LinkedList@VShip@@@@QAEXPAVShip@@@Z)
Debug/Example1.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
Example1.exe - 5 error(s), 0 warning(s)