error undefined reference to....

Write your question here.
so can someone help me with why am getting error undefined reference? thanks in advance
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
                compare_with_mapp (cont, prob_analysis_1);
                compare_with_mapp (cont, prob_analysis_2);
                

               }
     }


 }

 void compare_with_mapp(std::vector<int>&, std::multimap<int,int> &mapp)
 {
   for (std::multimap<int,int>::iterator ptr2 = mapp.begin(); ptr2 != mapp.end(); )
       {
         int y = ptr2->second;
         cont2.push_back(ptr2->second);
            if (std::any_of (cont.begin(), cont.end(), [&ptr2](int i){return i == ptr2->second;}))
               { ptr2++;
                  while(ptr2->second == y)
                    { cont2.push_back(ptr2->second);
                     ptr2++;
                    }
               }
            if (sizeof(cont2) < 3 ) {cont2.clear();}
                else {values_to_play.push_back(0);
                      values_to_play.push_back(0);
                      values_to_play.push_back(0);
                      for (int ptr = 0; ptr < cont2.size(); ptr++)
                         {
                          values_to_play.push_back(cont2[ptr]);
                         }
                         values_to_play.push_back(0);
                         values_to_play.push_back(0);
                         values_to_play.push_back(0);
                     }

        }
cont2.clear();
 }


Last edited on
Please post:
1) The declaration for cont
2) The function prototype for compare_with_mapp
3) The exact errors messages you're getting from the linker.
i got it..thanks...how careless of me ...thanks again
Topic archived. No new replies allowed.