#Difficulty with seperate compilation and linked list
1 messages · Page 1 of 1 (latest)
void list_insert(Node* previous_ptr, const Node::Item& entry){
Node* new_node = new Node;
new_node->data = entry;
new_node->link = previous_ptr->link;
previous_ptr->link = new_node;
}
Implementation in .cpp
void list_insert(Node* previous_ptr, const Node::Item& entry);
Header definition
And it does it to me again with another function called in a function
are you sure they're in the same namespace?