#Difficulty with seperate compilation and linked list

1 messages · Page 1 of 1 (latest)

cursive prawn
#

can you show a screenshot of the definition in the cpp and h files

ivory dome
#

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

thorny goblet
#

are you sure they're in the same namespace?