'ld: duplicate symbols for architecture x86_64

I keep getting these errors when I run my tests with multiple c++ files. any help would be appreciated on how to get past these errors. I hear it may be something to do with loading something twice but Im not sure.

I cannot post my code due to assignment restraints.

duplicate symbol 'Node::getRow()' in:
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/Node-2e2741.o
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/NodeList-4bf0e5.o
duplicate symbol 'Node::getCol()' in:
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/Node-2e2741.o
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/NodeList-4bf0e5.o
duplicate symbol 'Node::getDistanceToS()' in:
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/Node-2e2741.o
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/NodeList-4bf0e5.o
duplicate symbol 'Node::~Node()' in:
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/Node-2e2741.o
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/NodeList-4bf0e5.o
duplicate symbol 'Node::~Node()' in:
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/Node-2e2741.o
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/NodeList-4bf0e5.o
duplicate symbol 'Node::Node(int, int, int)' in:
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/Node-2e2741.o
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/NodeList-4bf0e5.o
duplicate symbol 'Node::Node(int, int, int)' in:
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/Node-2e2741.o
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/NodeList-4bf0e5.o
duplicate symbol 'Node::setDistanceToS(int)' in:
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/Node-2e2741.o
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/NodeList-4bf0e5.o
duplicate symbol 'Node::getRow()' in:
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/Node-2e2741.o
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/PathPlanner-af1285.o
duplicate symbol 'Node::getCol()' in:
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/Node-2e2741.o
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/PathPlanner-af1285.o
duplicate symbol 'Node::getDistanceToS()' in:
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/Node-2e2741.o
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/PathPlanner-af1285.o
duplicate symbol 'Node::~Node()' in:
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/Node-2e2741.o
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/PathPlanner-af1285.o
duplicate symbol 'Node::~Node()' in:
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/Node-2e2741.o
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/PathPlanner-af1285.o
duplicate symbol 'Node::Node(int, int, int)' in:
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/Node-2e2741.o
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/PathPlanner-af1285.o
duplicate symbol 'Node::Node(int, int, int)' in:
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/Node-2e2741.o
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/PathPlanner-af1285.o
duplicate symbol 'Node::setDistanceToS(int)' in:
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/Node-2e2741.o
    /var/folders/9h/ljy9dhpn2s7g90mv5x5xwcy40000gn/T/PathPlanner-af1285.o
ld: 16 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source