On 9 Jan 2004 09:22:14 -0800 in comp.lang.c++,
mdwilliam@radford.edu
(Matt Williams) was alleged to have written:[color=blue]
>I'm coming from a Java background - trying to build a linked list in
>C++.[/color]
Recommend using std::list
[color=blue]
>Linking...
>ListDriver.obj : error LNK2005: "public: __thiscall Node::Node(int)"
>(??0Node@@QAE@H@Z) already defined in LinkedList.obj[/color]
OK, so why is the Node constructor defined in _either_ of the two files
ListDriver or LinkList, much less both of them. You understand that
this area is rather different in C++ from Java, right? What do your
#include lines in those two modules look like? Where is the definition
of the Node class constructor intended to be?
[color=blue]
>LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
>Debug/FirstProject.exe : fatal error LNK1120: 1 unresolved externals[/color]
And you seem to have omitted your
int main() { etc.