I have two files : a .cpp and a .hpp file. In the .hpp file there is a class with name Knoten and a public function definition :
static void faerbe_algorithmus(bool jsp[5][5], std::list< std::list<int> > &liste_von_str_orth_spalten);
In the .cpp file I am trying to call the function in another function (compute_J) like this :
Knoten::faerbe_algorithmus(jsp, liste_von_str_orth_spalten);
but I get the following error from g++ :
In function `compute_J(double*, double (*) [5])':
11_3.cpp:(.text+0x3fc): undefined reference to `Knoten::faerbe_algorithmus(bool (*) [5], std::list<std::list<int, std::allocator<int> >, std::allocator<std::list<int, std::allocator<int> > > >&)'
collect2: error: ld returned 1 exit status
What am I doing wrong? I can post more of the code, when needed.