When I'm trying to compile my code, this message appears:
undefined reference to `N::my_class::do_something()'
collect2.exe: error: ld returned 1 exit status
What can I do?
my_class.cpp
#include "my_class.h" // header in local directory
#include <iostream> // header in standard library
using namespace N;
using namespace std;
void my_class::do_something()
{
cout << "Doing something!" << endl;
}